[Zope] Getting role information

Martijn Pieters mj@antraciet.nl
Wed, 17 Feb 1999 18:30:49 +0100


Hmmm...

[userobject].hasRole doesn't need the _.None. The definition actually is:

hasRole(list_of_roles)
	Returns true if user has one or more roles from list_of_roles.

So yo ucan test on AUTHENTICATED_USER.has_role(['Manager', 'Editor']), for
example.


	

--
M.J. Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------