[Grok-dev] FW: grok 1.0 and forbidden attribute error
Lacko Roman
rlacko at gratex.com
Mon Jan 11 10:55:40 EST 2010
Hi Martijn,
> -----Original Message-----
> From: grok-dev-bounces at zope.org [mailto:grok-dev-bounces at zope.org] On
> Behalf Of Martijn Faassen
>
> could you show the implementation of the Display object?
>
> Regards,
>
> Martijn
Here is the class declaration of 'display' view:
>>>
# Define Display Form for DocumentFile
class Display(grok.DisplayForm):
grok.context(DocumentFile)
<<<
The DocumentFile class just implements IDocumentFile interface
And here is how i render the DocumentFile in zpt:
>>>
<a tal:content="file/getFileBaseName"
tal:attributes="href string:${view/application_url}/files/${file/__name__}/display/@@file/File/${file/getFileBaseName}">
<<<
Thanks
- Roman
More information about the Grok-dev
mailing list