Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-21 Thread Chris Withers
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:/

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread J Cameron Cooper
[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.

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread Jürgen Herrmann
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

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread Jürgen Herrmann
[ [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

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread Andreas Jung
--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"