[Checkins]
SVN: grok/branches/gotcha-configuration-actions/src/grok/meta.py
Switch adapter decorator grokker to configuration actions.
Philipp von Weitershausen
philikon at philikon.de
Wed Oct 10 08:45:18 EDT 2007
Log message for revision 80789:
Switch adapter decorator grokker to configuration 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:42:06 UTC (rev 80788)
+++ grok/branches/gotcha-configuration-actions/src/grok/meta.py 2007-10-10 12:45:17 UTC (rev 80789)
@@ -400,8 +400,12 @@
# module context to be the thing adapted.
util.check_context(module_info.getModule(), context)
interfaces = (context, )
- component.provideAdapter(
- function, adapts=interfaces, provides=function.__implemented__)
+
+ config.action(
+ discriminator=('adapter', interfaces, function.__implemented__),
+ callable=component.provideAdapter,
+ args=(function, interfaces, function.__implemented__),
+ )
return True
More information about the Checkins
mailing list