[Grok-dev] grok 1.0 and forbidden attribute error
faassen at startifact.com
Mon Jan 11 08:11:51 EST 2010
Lacko Roman wrote:
> I'm using megrok.form. i have moved from grok 0.14 to grok 1.0.
> I getting following error, when trying to download file that is stored in zodb in field of type megrok.form.fields.File (please see interface bellow):
> ForbiddenAttribute: ('form_fields', <klucsite.documentfile.Display object at 0xbde9fcc>)
It's really odd you should be getting this at all. Grok shouldn't be
doing such attribute-level security checks at all, but something is
somehow triggering this.
> This is interface that i implement:
> from megrok.form.fields import File
> class IDocumentFile(interface.Interface):
> Title = schema.TextLine(title=_(u'Title'), required=True)
> File = File(title=_(u'File'), required=True)
could you show the implementation of the Display object?
More information about the Grok-dev