[Grok-dev] Re: Grok feature or bug?
ct at gocept.com
Tue Jan 22 10:19:48 EST 2008
Martijn Faassen schrieb:
> Sebastian Ware wrote:
>> I defined two classes "class View(grok.EditForm)" by mistake, without
>> Grok complaining. Is this a feature or a bug?
>> I am thinking since Grok complains if I unassociated page templates,
>> maybe this is another thing that should be checked.
> Yes, ideally it should be. It's tripped me up a few times myself.
> Unfortunately the way Python works is that if two declarations of a
> class exist in a row, the later one always wins. So:
We could catch this using stack inspection eventually, but I guess that
would require meta classes ... *duck*
gocept gmbh & co. kg - forsterstrasse 29 - 06112 halle (saale) - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
More information about the Grok-dev