diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-01-18 23:58:24 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-01-18 23:58:24 +0000 |
| commit | 4ed2c89e70ac5bc828c8130cf0e0534cd6e29f35 (patch) | |
| tree | 9ae8f597e2704e6f21bc5e3450870c7c59f3e2f9 /repoze/bfg/zcml.py | |
| parent | 62267e01d6eeaf8de871487898ad1ce02878c29a (diff) | |
| download | pyramid-4ed2c89e70ac5bc828c8130cf0e0534cd6e29f35.tar.gz pyramid-4ed2c89e70ac5bc828c8130cf0e0534cd6e29f35.tar.bz2 pyramid-4ed2c89e70ac5bc828c8130cf0e0534cd6e29f35.zip | |
context_factory -> factory
context_interfaces -> provides
Diffstat (limited to 'repoze/bfg/zcml.py')
| -rw-r--r-- | repoze/bfg/zcml.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index 72839495d..463090146 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -273,9 +273,9 @@ class IRouteDirective(Interface): """ path = TextLine(title=u'path', required=True) name = TextLine(title=u'name', required=False) - context_factory = GlobalObject(title=u'context_factory', required=False) - context_interfaces = Tokens(title=u'context_interfaces', required=False, - value_type=GlobalObject()) + factory = GlobalObject(title=u'context factory', required=False) + provides = Tokens(title=u'context interfaces', required=False, + value_type=GlobalObject()) minimize = Bool(title=u'minimize', required=False) encoding = TextLine(title=u'path', required=False) static = Bool(title=u'static', required=False) @@ -336,10 +336,10 @@ def connect_route(directive): if conditions: kw['conditions'] = conditions - if directive.context_factory: - kw['context_factory'] = directive.context_factory - if directive.context_interfaces: - kw['context_interfaces'] = directive.context_interfaces + if directive.factory: + kw['_factory'] = directive.factory + if directive.provides: + kw['_provides'] = directive.provides return mapper.connect(*args, **kw) @@ -349,8 +349,8 @@ class Route(zope.configuration.config.GroupingContextDecorator): implements(zope.configuration.config.IConfigurationContext,IRouteDirective) - def __init__(self, context, path, name=None, context_factory=None, - context_interfaces=(), minimize=True, encoding=None, + def __init__(self, context, path, name=None, factory=None, + provides=(), minimize=True, encoding=None, static=False, filter=None, absolute=False, member_name=None, collection_name=None, condition_method=None, condition_subdomain=None, condition_function=None, @@ -359,8 +359,8 @@ class Route(zope.configuration.config.GroupingContextDecorator): self.context = context self.path = path self.name = name - self.context_factory = context_factory - self.context_interfaces = context_interfaces + self.factory = factory + self.provides = provides self.minimize = minimize self.encoding = encoding self.static = static |
