[Grok-dev] Grok decorators: notably the grok.subscribe
João Paulo Fernandes Farias
jpaulofarias at gmail.com
Sat Sep 22 23:06:02 EDT 2007
Hello Grokkers!
This is my first email to the list, hopefully from many others to came. :-)
So, I was making a generations script for my app and I figured a
function that I decorated with @grok.subscribe(...) is None!!!
Problem is, grok decorates don't return anything, as decorators do
something like:
function = decorator(...)(function)
the function in the module turns into None.
I'm new on grok and figured that problem is solved by adding a "return
function" on the __call__ method of SubscribeDecorator class, in
_grok.py
That's it. Hope I was helpful.
--
JP
More information about the Grok-dev
mailing list