[Zope] ZClass and Add/Permission

Andreas Pakulat ap125@informatik.uni-rostock.de
Fri, 27 Jun 2003 12:40:57 +0200


Hi,

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). I reallz do not understand why I have to be a manager
to add a ZClass instance to another ZClass and this is not good for my
site either. How can I let every user from role X add Lectures to the
Semester?

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

Andreas

-- 
You will be the victim of a bizarre joke.