[Checkins]
SVN: grok/branches/gotcha-configuration-actions/src/grok/meta.py
Don't know what made me think I was done with this branch ; ).
Philipp von Weitershausen
philikon at philikon.de
Wed Oct 10 08:37:41 EDT 2007
Log message for revision 80787:
Don't know what made me think I was done with this branch ;).
Move the traverser grokker to actions.
Changed:
U grok/branches/gotcha-configuration-actions/src/grok/meta.py
-=-
Modified: grok/branches/gotcha-configuration-actions/src/grok/meta.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/meta.py 2007-10-10 12:25:14 UTC (rev 80786)
+++ grok/branches/gotcha-configuration-actions/src/grok/meta.py 2007-10-10 12:37:40 UTC (rev 80787)
@@ -296,9 +296,13 @@
def grok(self, name, factory, module_info, config, **kw):
context = module_info.getAnnotation('grok.context', None)
factory_context = util.determine_class_context(factory, context)
- component.provideAdapter(factory,
- adapts=(factory_context, IBrowserRequest),
- provides=IBrowserPublisher)
+ adapts = (factory_context, IBrowserRequest)
+
+ config.action(
+ discriminator=('adapter', adapts, IBrowserPublisher, ''),
+ callable=component.provideAdapter,
+ args=(factory, adapts, IBrowserPublisher),
+ )
return True
More information about the Checkins
mailing list