Jürgen Herrmann wrote:
hi:
AUTHENTICATED_USER is in REQUEST:
hence you could write
... self.REQUEST.AUTHENTICATED_USER.has_role(self, ["Manager"]) ...
Yes, but this is deprecated. Do what Andreas said :-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http:/
[EMAIL PROTECTED] wrote:
I have another problem (not in relation with AUTHENTICATED_USER):
I would like to know if a special function exists to transform special char in
html (like HTMLentities in PHP or escape in javascript)
Your Zope online help will help you.
For Python code, see the Products.
hi:
AUTHENTICATED_USER is in REQUEST:
hence you could write
... self.REQUEST.AUTHENTICATED_USER.has_role(self, ["Manager"]) ...
regards, juergen herrmann
[ [EMAIL PROTECTED] wrote:]
> I have problem with my python script.
> I want to check if a user has a the "manager" role, and add an option i
[ [EMAIL PROTECTED] wrote:]
> I have another problem (not in relation with AUTHENTICATED_USER):
> I would like to know if a special function exists to transform special
> char in html (like HTMLentities in PHP or escape in javascript)
> ___
> Zope maill
--On Mittwoch, 20. April 2005 16:30 Uhr +0200 [EMAIL PROTECTED] wrote:
I have problem with my python script.
I want to check if a user has a the "manager" role, and add an option in
a menu in this case Here is my script:
for el in rep.objectValues('Folder'):
if el.id=="Administration"