[ZPT] skip_unauthorized?
Peter Bengtsson
mail@peterbe.com
Fri, 31 Aug 2001 09:19:11 +0200
ok
http://www.zope.org/Members/peterbe/DTML2ZPT/examples/example17/view
> On Thursday 30 August 2001 10:58, Phil Harris wrote:
> > How do you create a tal:repeat with the same functionality as a dtml-in
> > with skip_unauthorized?
> > I know I could create a Python Script that emulates this, I'm just
> > wondering if there is anything that automatically gives you this
> > functionality?
>
> Re: [ZPT] skip_unauthorized
> Date: Mon, 13 Aug 2001 15:23:11 -0400
> From: Evan Simpson <evan@zope.com>
> To: Thomas Olsen <tol@tanghus.dk>
> CC: zpt@zope.org
>
> Thomas Olsen wrote:
> > out how to implement skip_unauthorized as in:
> >
> > <dtml-in expr="objectValues( [ 'Link','Favorite' ] )" skip_unauthorized>
>
>
> With the just-released ZTUtils 1.1.0, you can do this:
>
> <ul tal:define="ztu modules/ZTUtils;
> objs python:here.objectValues(['Link', 'Favorite']);
> authobjs python:ztu.LazyFilter(objs, skip='')">
> <li tal:repeat="obj authobjs">
>
> Cheers,
>
> Evan @ Zope
>
> >
> > _______________________________________________
> > ZPT mailing list
> > ZPT@zope.org
> > http://lists.zope.org/mailman/listinfo/zpt
>
> --
> Regards
> Thomas Olsen
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt