diff --git a/backend/requirements.txt b/backend/requirements.txt index b71fe2b..6705750 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,5 +1,5 @@ repoze.sendmail==4.1 -pyramid==1.7.3 +pyramid==1.10.2 pyramid_tm==0.12 pyramid_debugtoolbar pyramid_authstack==1.0.1 diff --git a/backend/src/appenlight/__init__.py b/backend/src/appenlight/__init__.py index 3b46dcd..fe08b01 100644 --- a/backend/src/appenlight/__init__.py +++ b/backend/src/appenlight/__init__.py @@ -126,15 +126,15 @@ def main(global_config, **settings): # json rederer that serializes datetime config.add_renderer('json', json_renderer) - config.set_request_property('appenlight.lib.request.es_conn', 'es_conn') - config.set_request_property('appenlight.lib.request.get_user', 'user', - reify=True) - config.set_request_property('appenlight.lib.request.get_csrf_token', - 'csrf_token', reify=True) - config.set_request_property('appenlight.lib.request.safe_json_body', - 'safe_json_body', reify=True) - config.set_request_property('appenlight.lib.request.unsafe_json_body', - 'unsafe_json_body', reify=True) + config.add_request_method('appenlight.lib.request.es_conn', 'es_conn', property=True) + config.add_request_method('appenlight.lib.request.get_user', 'user', + reify=True, property=True) + config.add_request_method('appenlight.lib.request.get_csrf_token', + 'csrf_token', reify=True, property=True) + config.add_request_method('appenlight.lib.request.safe_json_body', + 'safe_json_body', reify=True, property=True) + config.add_request_method('appenlight.lib.request.unsafe_json_body', + 'unsafe_json_body', reify=True, property=True) config.add_request_method('appenlight.lib.request.add_flash_to_headers', 'add_flash_to_headers') config.add_request_method('appenlight.lib.request.get_authomatic',