[Checkins]
SVN: grok/branches/jw-adapter-decorator/src/grok/_grok.py
Make sure the function is returned so it stays available in
the module.
Jan-Wijbrand Kolman
jw at infrae.com
Tue Jun 5 05:24:42 EDT 2007
Log message for revision 76352:
Make sure the function is returned so it stays available in the module.
Changed:
U grok/branches/jw-adapter-decorator/src/grok/_grok.py
-=-
Modified: grok/branches/jw-adapter-decorator/src/grok/_grok.py
===================================================================
--- grok/branches/jw-adapter-decorator/src/grok/_grok.py 2007-06-05 09:03:54 UTC (rev 76351)
+++ grok/branches/jw-adapter-decorator/src/grok/_grok.py 2007-06-05 09:24:42 UTC (rev 76352)
@@ -135,6 +135,7 @@
if implementers is None:
frame.f_locals['__grok_implementers__'] = implementers = []
implementers.append((function, implementer, interfaces))
+ return function
if isinstance(interface_or_function, (types.FunctionType,)):
# The adapter decorator is without argument, which means the
More information about the Checkins
mailing list