requests: cleaned / unified way of handling requests generation from non-web scope.
- cli - celery workers
This commit is contained in:
parent
5b6732fae5
commit
f4336fe56e
6 changed files with 99 additions and 97 deletions
|
|
@ -381,15 +381,6 @@ def includeme(config, auth_resources=None):
|
|||
config.add_subscriber(write_js_routes_if_enabled,
|
||||
pyramid.events.ApplicationCreated)
|
||||
|
||||
# request custom methods
|
||||
config.add_request_method(
|
||||
'rhodecode.lib.partial_renderer.get_partial_renderer',
|
||||
'get_partial_renderer')
|
||||
|
||||
config.add_request_method(
|
||||
'rhodecode.lib.request_counter.get_request_counter',
|
||||
'request_count')
|
||||
|
||||
# Set the authorization policy.
|
||||
authz_policy = ACLAuthorizationPolicy()
|
||||
config.set_authorization_policy(authz_policy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue