Marcin Kuzminski
93c5a7f9c5
compare: migrated code from pylons to pyramid views.
2017-07-26 13:28:45 +02:00
Marcin Kuzminski
4de255d013
core: no longer rely on webob exception inside get_or_404 function.
...
- relly on pyramid exc only
- helps reduce number of appenlight problems with 404 handling via webob
2017-07-25 15:26:38 +02:00
Marcin Kuzminski
0c1f7e3306
auth: improve logging
2017-07-25 15:07:43 +02:00
Marcin Kuzminski
86956d9436
clipboard-action: make the icon provide feedback when clicked.
2017-07-25 10:58:07 +02:00
Marcin Kuzminski
3f26df9f37
user: deprecated usage of api_keys.
...
- additionally we don't load secrets as they are never used (and are expensive to fetch)
- simplify fetching of details improves performance
2017-07-25 16:27:08 +02:00
Marcin Kuzminski
18aa6692ee
ui: fix double icons on quick-menu.
2017-07-24 16:50:30 +02:00
Marcin Kuzminski
8efc4d92c5
repo-commits: ported changeset code into pyramid views.
...
- refactored part of naming to use commit_id instead of revision
- renamed some parts to repo_commits instead of changeset without breaking backward compat
- small improvements and fixes for tests
2017-07-24 17:04:14 +02:00
Marcin Kuzminski
5b3187fdf9
auth-token: fix way we generate entries inside the list of whitelist names.
...
the dotted notation is incompatible with how we check those functions using ':' separator.
2017-07-24 15:07:17 +02:00
Marcin Kuzminski
67f8000683
core: use a custom filter for rendering all mako templates.
...
- brings old pylons function that converted None into a empty markup
2017-07-24 14:28:19 +02:00
Daniel Dourvaris
b253e2b02e
security: fix self-xss on modifing gist filename.
2017-07-24 12:49:38 +02:00
Marcin Kuzminski
3b524b7875
renderer: remove usage of old non request PartialRenderer
2017-07-24 09:59:48 +02:00
Marcin Kuzminski
72eb573560
users: made the function for account deactivation easier to use inside ishell.
2017-07-24 11:51:07 +02:00
Marcin Kuzminski
a9064c5007
translation: unified usage of pluralize function ungettext.
...
- now it's consistent _ungettext for pylons and pyramid
- will allow easier migration to full pyramid codebase
2017-07-24 10:00:06 +02:00
Marcin Kuzminski
49a76c81fe
views: fixed some view names for better usage in view whitelist access
2017-07-24 12:28:57 +02:00
Marcin Kuzminski
dc2af71072
permissions: expose new view that lists all available views for usage in whitelist access.
2017-07-21 04:54:36 +02:00
Marcin Kuzminski
8bfe9e6306
templates: add copy to clipboard for repository clone.
2017-07-20 22:29:35 +02:00
Marcin Kuzminski
ff79205313
global-permissions: ported controller to pyramid view.
...
- fixed some other tests cases to rely on test routing
2017-07-20 15:04:36 +02:00
Marcin Kuzminski
4f16a9a411
repository-groups: introduce last change for repository groups.
2017-07-20 12:59:53 +02:00
Lisa Quatmann
666cb615d5
styling: updated old icons based on the new definitions.
...
- making things look nicer.
2017-07-19 22:54:49 +02:00
Lisa Quatmann
bb02ca46d7
debug-styles: let the autogenerated fonts be read automatically from the .less files.
...
- Magic ! :)
2017-07-19 22:53:56 +02:00
Lisa Quatmann
79c428dc10
styling: updated icon files.
2017-07-19 22:53:13 +02:00
Marcin Kuzminski
5dfbc6d897
docs: fixed ldap options. Those no longer exist in 4.X
2017-07-19 12:42:49 +02:00
Marcin Kuzminski
a98d55f137
clipboard: added dummy placeholders for copying commits/paths via clipboard.js
2017-07-19 11:38:34 +02:00
Marcin Kuzminski
87b9dede56
core: added clipboard js to package.
2017-07-19 10:49:36 +02:00
Marcin Kuzminski
c276174e89
journal: ported controller to pyramid code
2017-07-18 23:38:15 +02:00
Marcin Kuzminski
cf9b29a5bc
tests: lazy load the JSON history for tests.
...
- loading on module level makes this evaluated every time we start the server.
2017-07-18 00:21:30 +02:00
Marcin Kuzminski
b2714a3c1d
changelog: ported to pyramid views.
2017-07-18 00:07:43 +02:00
Marcin Kuzminski
f81ec24cc9
tests: no-newline generator should also replace \r
2017-07-17 23:21:01 +02:00
Marcin Kuzminski
678a930750
routing: use a common method to extract the f_path for repo views.
...
The extra slashes can cause odd issues with GIT, the previous
pylons code had a fix in routing. This ports this fix into
pyramid helper in base app.
2017-07-17 23:09:33 +02:00
Marcin Kuzminski
55148c3e6c
pyramid: moved add_route_requirements into pyramid base app.
...
- use it integrations, and simplify the code.
2017-07-17 23:08:07 +02:00
Marcin Kuzminski
53611d6f94
files: ported repository files controllers to pyramid views.
2017-07-17 14:20:22 +02:00
Marcin Kuzminski
5184f34ead
svn: don't raise duplicate exception. The function already does that.
2017-07-17 14:19:22 +02:00
Marcin Kuzminski
73ffe35c5b
tests: re-use assert_session_flash to also test for negative cases.
...
- removes code duplication
2017-07-17 14:16:14 +02:00
Marcin Kuzminski
01618e7be5
pyramid: expose a temporary TemplateContext under _c
2017-07-14 12:49:53 +02:00
Daniel Dourvaris
7add053ff8
users: add additional information why user with pending reviews shouldn't be deleted.
2017-07-13 22:40:12 +02:00
Marcin Kuzminski
e6113a3d7b
pyramid: use explicit c var for globals passed in templates instead of the global 'request'
2017-07-13 19:50:28 +02:00
Marcin Kuzminski
8ff5e04569
notifications: removed usage of pylons translation from models.
2017-07-13 17:58:15 +02:00
Marcin Kuzminski
580a0d0ea5
notifications: ported views to pyramid
2017-07-13 18:28:31 +02:00
Marcin Kuzminski
7caba28f0e
pyramid: fix problem with default language for users without any explicit one set.
2017-07-13 12:54:02 +02:00
Marcin Kuzminski
c650cdddcc
pyramid: if possible fetch csrf tokens from pyramid session.
...
- we need to explicitly pass in requests into secure forms
- allows to not use pylons global session for fetching csrf tokens
2017-07-13 12:35:42 +02:00
Marcin Kuzminski
ea17d0aac2
pyramid: don't use pylons translation string in db models.
2017-07-13 12:32:59 +02:00
Marcin Kuzminski
82b3aebb67
pyramid: make alerts always use request.session instead of pylons one.
2017-07-13 11:56:28 +02:00
Marcin Kuzminski
aa2f4917f2
error-view: expose traceback variable in error view.
2017-07-13 11:55:47 +02:00
Marcin Kuzminski
f7ae0f3419
pyramid: stop relying on pylons translation object in helpers.
...
We'll now use the registered translation function from request.
2017-07-13 10:58:58 +02:00
Marcin Kuzminski
25666c0871
ops: added redirect and exception ops view for testing.
2017-07-13 10:46:56 +02:00
Marcin Kuzminski
ebc5609e99
pyramid: allows easier turning off the pylons components.
2017-07-13 10:57:57 +02:00
Marcin Kuzminski
26fd27cd8c
nix: synced auto-generated nix file with EE
2017-07-13 00:18:40 +02:00
Marcin Kuzminski
0b2c148765
pyramid: stop relying on global mako url() function.
...
- use only the helpers method
2017-07-12 23:46:34 +02:00
Marcin Kuzminski
68cdaa3763
pyramid: remove csrf tests because this was only used in pylons.
2017-07-13 09:56:15 +02:00
Marcin Kuzminski
b74413678d
pyramid: changes for pyramid migration.
2017-07-12 22:56:21 +02:00