[Grok-dev] FW: grok 1.0 and forbidden attribute error

Souheil CHELFOUH trollfot at gmail.com
Mon Jan 11 11:05:02 EST 2010


Views are not traversable to attributes non present in IBrowserView.
I don't understand your code here, though. If the view is "display",
why is there a @@file ?
Please, paste your whole code, this looks a bit weird to me.

2010/1/11 Lacko Roman <rlacko at gratex.com>:
> 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
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
>


More information about the Grok-dev mailing list