[Zope] ZClass and Add/Permission

Dieter Maurer dieter@handshake.de
Fri, 27 Jun 2003 20:21:45 +0200


Andreas Pakulat wrote at 2003-6-27 12:40 +0200:
 > I've got a Problem here with 2 ZClasses I created. The first one -
 > SemsesterClass is derived from ObjectManager, to allow me to put
 > instances of the second - LectureClass - into it. I want to do this with
 > the following code in LectureClass_add:
 > 
 > context.LectureClass.createInObjectManager(request['id'],request)
 > 
 > But for this I have to be in a manager's role, even though I added the
 > Add Lecture Permission to the webeditor role (which will be used for the
 > logged in users).

This is usually not necessary...
Though, I cannot tell you why it does not work for you.

A proxie role might be a workaround for your problem.

 > ...
 > I'm using Zope 2.6.1 and exUserFolder for authentication (not in /, but
 > in the folder of my site)

And you want to add your Z Instance there?
And the role assignment is there, too?


Dieter