[Zope] New zope feature?

Anders Qvist quest@netg.se
Sat, 17 Jul 1999 07:52:06 +0200 (CEST)


On Thu, 15 Jul 1999, Amos Latteier wrote:

> At 06:00 PM 7/15/99 +0200, Anders Qvist wrote:
> >(Haven't researched this one, so it might have been suggested already.)
> >
> >What about an DTML directive
> >
> ><!--#role somerole--><!--#/role-->
> >
> >which would be a specialized if clause, which includes its content only if
> >the current caller has the specified role?
> 
> You can already do this like so:
> 
> <!--#if "AUTHENTICATED_USER.has_role('somerole')"-->
> ...
> <!--#/if-->
> 
> You can also test for permissions on objects like so:
> 
> <!--#if "AUTTHENTICATED_USER.has_permission('View',someObject)"-->
> ...
> <!--#/if-->

Yes, I realised this. However, I think this is so commonplace that a
simpler method (ie the one I suggested) might be motivated.

Anders "Quest" Qvist
NetGuide Scandinavia

-- Why suffer scarcity? Look for the Open Source and enter a world of plenty!