[PEAK] sitemap, specialist, and permissionNeeded (I
presume)
Phillip J. Eby
pje at telecommunity.com
Tue Nov 2 06:56:20 EST 2004
At 11:37 PM 11/1/04 -0500, R. David Murray wrote:
>Now, for the next thing I so far haven't been able to find digging
>through the mailing list archive: in a pwt, how do I reference
>the attributes of the object?
>
> <span this:replace="./id" />
>
>just gets me
>
> NotFound(u'id', <fcgbilling.model.Account object at 0x872f59c>)
>
>it feels like I'm missing something obvious. Maybe it's just too
>late at night for me to see it.
You can't access attributes that don't have permissions declared, and
aren't listed in an <allow> in the sitemap. So, either add
'permissionNeeded=security.Anybody' to the features in the class, *or* add
an <allow> within the appropriate <content> type block.
More information about the PEAK
mailing list