[Zope] Adding roles in Product code

drew nichols drew@mena.org.au
Wed, 25 Jun 2003 10:35:47 +1000

How can i add a role automatically when creating my new instance of my class that extends ObjectManager??

REQUEST.set ( 'role', 'Void' )
self.manage_defined_roles ( "Add Role", REQUEST )

This throws a *get* error so i assume that the REQUEST.RESPONSE.redirect  returned from the manage_defined_roles won't work from my python code.