OK The <dtml-var "AUTHENTICATED_USER..."> was in a <dtml-with someobject only> block. When removing "only", it works again !!!??? Seems that there's no connection with the ZClass container. --Gilles ----- Original Message ----- From: "Gilles Lenfant" <glenfant@bigfoot.com> To: <zope@zope.org> Sent: Monday, August 20, 2001 1:36 PM Subject: [Zope] authenticated_user in a method of a ZClass...
Hi,
Using such a simple code that works anywhere else raises a NameError exception in a method (DTML Method) of a ZClass...
<dtml-if "AUTHENTICATED_USER.has_role(['Manager','backoffice'])"> <p>You're a manager</p> </dtml-if>
Any idea ?
TIA
--Gilles
_______________________________________________ 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 )