[Grok-dev] Re: Module with the same name as package

Martijn Faassen faassen at startifact.com
Fri Jan 19 07:03:56 EST 2007

Christian Theune wrote:
>> b) We support a 'herd.py' module in the 'herd' package and allow 
>> templates to be associated with 'herd.py' *ONLY*. 'herd/herd_templates' 
>> would be the template directory for 'herd/herd.py'. The usage of 
>> grok.template in 'herd/__init__.py' would raise an error.
> I'd be fine with that. Isn't it somewhat frowned upon to put too much
> code into __init__.py anyway?

Yes, I support this too. __init__.py shouldn't be containing any view 
style code. In fact, I'd be happy if __init__.py couldn't even contain 
any grok subclasses and bailed out with an error.



More information about the Grok-dev mailing list