[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] ZClass and Add/Permission
From:       Andreas Pakulat <ap125 () informatik ! uni-rostock ! de>
Date:       2003-06-28 10:29:06
[Download RAW message or body]

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.

Andreas

-- 

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic