[Zope] skip_unauthorized not working in dtml-in
marc lindahl
marc@bowery.com
Mon, 26 Nov 2001 11:40:47 -0500
I ran into something like this...
I'm not sure exactly the real way to fix it, but you're getting this because
of the PARENTS[0]. part of the thing. Anyhow, aren't you supposed to use
aq_parent instead? Anyway, you get the same issue either way. You don't
have authorization for the PARENTS[0] object in general. The only way I
could find to deal with this, is not to use the construct. You can get
around it by using a DTML Method instead of DTML Document, then you can just
do "objectValues( ...
> From: Kevin Worth <kworth@engin.umich.edu>
> Date: Mon, 26 Nov 2001 10:07:53 -0500
> To: zope@zope.org
> Subject: [Zope] skip_unauthorized not working in dtml-in
>
> Zope 2.4.3, Mac OS X.
>
> This code:
> <dtml-in expr="PARENTS[0].objectValues(['Folder', 'RSTX_Document',
> 'DTML Document', 'STX Document'])" skip_unauthorized=1 sort=id>
> <a href="&dtml-absolute_url;/"><dtml-var title_or_id></a>
> </dtml-in>
>
> Does not work in my setup. I know the permissions are fine, because
> skip_unauthorized is working as expected in a dtml-tree for the same
> objects.
>
> The Zope Book mentions another way of doing it -by assigning a
> property for those items to appear in the list and checking to see if
> it is true - but that doesn't work well for me because the
> public/private nature of many items will change often based on the
> time of year.
>
> thanks
>
> Kevin
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )