[Checkins]
SVN: grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/
signature of grok() changed. In particular, it should take **kw
Philipp von Weitershausen
philikon at philikon.de
Wed Oct 10 04:08:45 EDT 2007
Log message for revision 80765:
signature of grok() changed. In particular, it should take **kw
Changed:
U grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/continue_scanning.py
U grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/priority.py
-=-
Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/continue_scanning.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/continue_scanning.py 2007-10-10 07:53:31 UTC (rev 80764)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/continue_scanning.py 2007-10-10 08:08:45 UTC (rev 80765)
@@ -28,14 +28,14 @@
component_class = Alpha
priority = 1 # we need to go before BetaGrokker
- def grok(self, name, factory, context, module_info, templates):
+ def grok(self, name, factory, module_info, config, **kw):
print "alpha"
return True
class BetaGrokker(grok.ClassGrokker):
component_class = Beta
- def grok(self, name, factory, context, module_info, templates):
+ def grok(self, name, factory, module_info, config, **kw):
print "beta"
return True
Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/priority.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/priority.py 2007-10-10 07:53:31 UTC (rev 80764)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/grokker/priority.py 2007-10-10 08:08:45 UTC (rev 80765)
@@ -33,7 +33,7 @@
class AlphaGrokker(grok.ClassGrokker):
component_class = Alpha
- def grok(self, name, factory, context, module_info, templates):
+ def grok(self, name, factory, module_info, **kw):
print "alpha"
return True
@@ -41,7 +41,7 @@
component_class = Beta
priority = 1
- def grok(self, name, factory, context, module_info, templates):
+ def grok(self, name, factory, module_info, **kw):
print "beta"
return True
@@ -49,6 +49,6 @@
component_class = Gamma
priority = -1
- def grok(self, name, factory, context, module_info, templates):
+ def grok(self, name, factory, module_info, **kw):
print "gamma"
return True
More information about the Checkins
mailing list