[Grok-dev] Re: ViewletManager in grok.AddForm

Philipp von Weitershausen philipp at weitershausen.de
Thu Jan 17 11:22:12 EST 2008


Christian Klinger wrote:
> Hi again,
> 
> i have found a solution for the problem, but i have absolutly
> no idea why this now works...
> 
> Maybe someone of you knows...
> 
> 
> 
> class CreateArzt(grok.AddForm, grok.View):
>                                *********
>     grok.context(ArztContainer)
>     template = grok.PageTemplateFile('form.pt')
>     form_fields = grok.AutoFields(IArzt)
>     grok.require('artus.ManageArzt')
> 
> I have to subclass from grok.View too, than the error goes away.

Yup. This is an acceptable temporary fix. The problem has been reported 
previously (https://bugs.launchpad.net/grok/+bug/162437) and already 
been fixed. It should disappear in any upcoming bugfix release.


More information about the Grok-dev mailing list