Commit graph

41 commits

Author SHA1 Message Date
Marcin Kuzminski
7781eabe94 auth: use cache_ttl from a plugin to also cache permissions.
- this gives a 30% speed increase in operations like svn commit
- generally uses the same mechanismy like auth cache to cache permissions for faster
access to vcs commands
2017-10-07 10:02:39 +02:00
Marcin Kuzminski
f445addfdd vcs: reduce sql queries used during pull/push operations. 2017-09-28 21:45:19 +02:00
Marcin Kuzminski
cfe326566d helpers: remove usage of pylons session. 2017-09-19 17:11:48 +02:00
Marcin Kuzminski
928129ed6c repositories: rewrote whole admin section to pyramid.
- fixed few small found problems
- code cleanups
2017-08-11 13:00:47 +02:00
Marcin Kuzminski
c56bb0da4b core: removed usage of global pylons config in base lib. 2017-08-03 21:59:49 +02:00
Marcin Kuzminski
c17e166f5f events: make sure we propagate our dummy request with proper application_url.
- handles proper proxy prefix
- handles https and reverse proxies
2017-07-26 16:19:06 +02:00
Marcin Kuzminski
2656338a0d events: ported pylons part to pyramid.
- fix lack of request context in VCS type events
  we now use a dummy request but it's sufficient for routes generation
- cleanup and re-organized some code
- removed all pylons stuff from the events code
2017-07-26 12:41:14 +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
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
b2714a3c1d changelog: ported to pyramid views. 2017-07-18 00:07:43 +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
4a9be66cd1 dependencies: bumped pyramid-debugtoolbar to 4.3.1 2017-07-12 22:55:39 +02:00
Marcin Kuzminski
71071c0b26 dependencies: bumped pyramid to 1.9 webob to 1.7.3 and webtest to 2.0.27
- fixed some core tests for new webob/webtest
- changed core methods to make them more pyramid compat.
2017-07-12 22:54:14 +02:00
Marcin Kuzminski
81027a10de pyramid: move language extraction into a seperate method. 2017-07-12 18:51:01 +02:00
Marcin Kuzminski
7304e9b076 pyramid: moved extraction of user into a seperate subscriber. 2017-07-12 18:54:42 +02:00
Marcin Kuzminski
41cafab139 core: always attach pyramid context into request
- this will be the default way of replacing tempalte_context globals from pylons
- helps remove of old style PartialRenderer
2017-07-08 15:25:54 +02:00
Marcin Kuzminski
ff28358243 tests: remove usage of pylons context var in home app test. 2017-07-08 00:03:39 +02:00
Marcin Kuzminski
aa3bffd198 pull-requests: prepare the migration of pull request to pyramid.
- this is half the code because of problems found during porting
- partially moved the urls, and flipped the logic into pyramid code
- needs more work in core for full switch.
2017-06-19 13:25:15 +02:00
Daniel Dourvaris
930c7eebbd api: attach the call context variables to request for later usage
in API calls.
2017-06-14 11:07:54 +02:00
Marcin Kuzminski
53b4ac98f8 repo-summary: re-implemented summary view as pyramid.
- changed exception handler, to now work in pure pyramid mode
- changed missing requirements logic on repo based views that require vcs-connection
2017-06-07 13:23:21 +02:00
Marcin Kuzminski
6680a287da core: improve attach context attribute to rely strictly on already provided user. 2017-06-05 19:22:27 +02:00
Marcin Kuzminski
71fee00277 home: moved home and repo group views into pyramid.
- fixed lots of tests related to those changes
- now main and subrepo group views are handled by pyramid.
2017-06-05 15:16:04 +02:00
Marcin Kuzminski
46dcc2730a hooks: expose user agent in the variables submitted to pull/push hooks. 2017-04-28 21:21:05 +02:00
Marcin Kuzminski
2d37a1e953 routing: switched static redirection links to pyramid.
- ref #4185
2017-04-20 01:00:09 +02:00
Marcin Kuzminski
4845dc40af pyramid: added checks for password change for authenticated users. 2017-03-14 12:40:01 +01:00
Marcin Kuzminski
8732733a54 authentication: enabled authentication with auth_token and repository scope.
- fixes #3932
- vcs type tokens now with repo scope narrows the usage to a repository.
2017-03-03 20:48:23 +01:00
Marcin Kuzminski
24ef7171f8 comments: add comments type into comments. 2017-01-11 14:46:29 +01:00
Marcin Kuzminski
526cdfd9b2 i18n: use consistent way of setting user language. 2017-01-12 17:05:06 +01:00
Marcin Kuzminski
64b98245ef code: added more logging, and some notes 2017-01-12 12:54:21 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Daniel Dourvaris
0584810d77 diffs: move diffmode to template global context and add it to session
so mode is saved between requests
2016-10-26 16:53:16 +03:00
Martin Bornhold
01b5812099 vcs: Add flag to indicate if repository is a shadow repository. 2016-09-21 13:07:20 +02:00
Marcin Lulek
62112cc6fe base: add pyramid_request to tmplContext 2016-09-07 16:48:36 +02:00
Marcin Kuzminski
d92e030879 vcs: moved svn proxy settings into vcs related settings
- vcs middleware now returns dummyHandler if not configured
- propagate the per-repo vcs related configs into VCSMiddleware
- moved the forms arround and group things into more logical blocks
2016-09-06 12:29:54 +02:00
Martin Bornhold
c46ad9f215 vcs: Pass registry to vcs for user authentication.
Explicit pass the registry insted of indirectly using it via pyramids
thread locals.
2016-08-08 08:29:10 +02:00
Marcin Lulek
e9d5eb09c5 notifications: support real-time notifications with websockets via channelstream 2016-08-02 16:18:44 +02:00
Marcin Kuzminski
d61bb55cfb js-template-context: made the context pyramid and pylons compatible.
- the routing/controller are bigger problem we'll disable them for now.
2016-07-08 19:02:52 +02:00
Marcin Lulek
f8716e4525 templateContext: improve the context object idea 2016-07-07 15:33:43 +02:00
Marcin Lulek
50f344ce72 templateContext: allow for flexible way to communicate additional info for client code from controllers 2016-07-07 14:15:03 +02:00
Marcin Kuzminski
055024f665 settings: use cached settings in few places we only often use it for reading. 2016-06-23 12:33:04 +02:00
Marcin Kuzminski
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00