[Zope] ZClass and Add/Permission
Sat, 28 Jun 2003 12:29:06 +0200
On 27.Jun 2003 - 20:21:45, Dieter Maurer wrote:
> 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.
You mean, I do not have to have the right Add Lectures to add Instances
of this ZClass to my site? I can't believe that.
> A proxie role might be a workaround for your problem.
I'll try that tomorrow
> > ...
> > 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?
Yes and Yes, I also tried to move the role into /, but this didn't help.