[Zope] hasRole syntax ?

merp@SAFe-mail.net merp@SAFe-mail.net
Thu, 30 Aug 2001 00:36:00 +0700


In a dtml document, if i use
<dtml-var expr="AUTHENTICATED_USER.hasRole('xyz')">
i received a 1 for any value of xyz
if i use the syntax
<dtml-var expr="AUTHENTICATED_USER.has_role('xyz')">
i will receive 0 if i'm not a member of the group
and 1 if i am a member, which is the correct behavior

Which syntax is the correct one?
Any explanation why the first syntax is not correct?

Thanks