[Grok-dev] Are functions starting with "handle_" considered
uli at gnufix.de
Tue Sep 11 12:15:01 EDT 2007
Am Dienstag, den 11.09.2007, 16:20 +0200 schrieb Jan-Wijbrand Kolman:
> I'm "porting" my application to the latest Grok version and suddenly,
> whenever I try to go the http://localhost:8080/applications I get an
> error message.
> After a bit of digging, I found that somehow, for some reason, a module
> level function in my application called "handle_cascade" is being
> invoked by the documentation grokking machinery(?).
Correct. This is my fault. As Martijn already stated, the
docgrok-grokkers should not grok functions. I'll post a fix later on
today, which will grok class instances. It already works here, but I
still have to extend the docgrok-tests and documentation.
> It seems names starting with 'handle_' are considered special. I'm not
> sure I like that. Can someone explain why these names are special?
They are not. It was a dumb idea to do it this way. My apologies and
More information about the Grok-dev