diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-23 11:24:19 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-23 11:24:19 +0000 |
| commit | 5453b7bc96005c7607338c24e9ccf858f7cfe153 (patch) | |
| tree | 36892eef44208cbf494f3d2857f2d7f219f48bd6 /repoze/bfg/zcml.py | |
| parent | 9ef3b3ec29e3f02e901b41ba04eceb2af86be461 (diff) | |
| download | pyramid-5453b7bc96005c7607338c24e9ccf858f7cfe153.tar.gz pyramid-5453b7bc96005c7607338c24e9ccf858f7cfe153.tar.bz2 pyramid-5453b7bc96005c7607338c24e9ccf858f7cfe153.zip | |
- The ``repoze.bfg.interfaces.ITemplateRendererFactory`` interface was
removed; it has become unused.
- Change imperative API.
Diffstat (limited to 'repoze/bfg/zcml.py')
| -rw-r--r-- | repoze/bfg/zcml.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index 9c0f381f1..5d6fdb8d8 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -165,7 +165,7 @@ def view( def register(): config = Configurator(reg) - config.view( + config.add_view( permission=permission, for_=for_, view=view, name=name, request_type=request_type, route_name=route_name, request_method=request_method, request_param=request_param, @@ -244,7 +244,7 @@ def route(_context, name, path, view=None, view_for=None, def register(): config = Configurator(reg) - config.route( + config.add_route( name, path, factory=factory, @@ -353,7 +353,7 @@ def resource(_context, to_override, override_with): _context.action( discriminator = None, - callable = config.resource, + callable = config.override_resource, args = (to_override, override_with, _context.info), ) @@ -370,7 +370,7 @@ def repozewho1authenticationpolicy(_context, identifier_name='auth_tkt', # be found by the view registration machinery reg = get_current_registry() config = Configurator(reg) - config.authentication_policy(policy, _info=_context.info) + config._set_authentication_policy(policy, _info=_context.info) _context.action(discriminator=IAuthenticationPolicy) class IRemoteUserAuthenticationPolicyDirective(Interface): @@ -386,7 +386,7 @@ def remoteuserauthenticationpolicy(_context, environ_key='REMOTE_USER', # be found by the view registration machinery reg = get_current_registry() config = Configurator(reg) - config.authentication_policy(policy, _info=_context.info) + config._set_authentication_policy(policy, _info=_context.info) _context.action(discriminator=IAuthenticationPolicy) class IAuthTktAuthenticationPolicyDirective(Interface): @@ -424,7 +424,7 @@ def authtktauthenticationpolicy(_context, # be found by the view registration machinery reg = get_current_registry() config = Configurator(reg) - config.authentication_policy(policy, _info=_context.info) + config._set_authentication_policy(policy, _info=_context.info) _context.action(discriminator=IAuthenticationPolicy) class IACLAuthorizationPolicyDirective(Interface): @@ -436,7 +436,7 @@ def aclauthorizationpolicy(_context): # found by the view registration machinery reg = get_current_registry() config = Configurator(reg) - config.authorization_policy(policy, _info=_context.info) + config._set_authorization_policy(policy, _info=_context.info) _context.action(discriminator=IAuthorizationPolicy) class IRendererDirective(Interface): @@ -453,7 +453,7 @@ def renderer(_context, factory, name=''): # found by the view machinery reg = get_current_registry() config = Configurator(reg) - config.renderer(factory, name, _info=_context.info) + config.add_renderer(name, factory, _info=_context.info) _context.action(discriminator=(IRendererFactory, name)) class IStaticDirective(Interface): @@ -484,7 +484,7 @@ def static(_context, name, path, cache_max_age=3600): _context.action( discriminator = ('route', name, False, None, None, None, None, None), - callable=config.static, + callable=config.add_static_view, args = (name, path, cache_max_age, _context.info), ) |
