Can I create ZClass instance other than manager role?
Hello all, Can I create ZClass instance without manager role? I tried as following: 1. Create a ZClass 'ztest' in the 'ztstproduct' product with no base class. I made no changes with them. 2. At '/', I defined 'member' role and assined all permissions listed on security page. 3. Create user 'tstuser' and assigned 'member' role. 4. Log-in as 'tstuser' user and go to the manage screen. 5. Create ztest instance at '/' and got 'Unauthorized' error. How can I create ztest instance by tstuser? My environment is: Windows 98 Zope 2.0b5 Thanks, -------------------------- Atsuo Ishimoto gembook@techie.com Homepage:http://hp.vector.co.jp/authors/VA010598/
Atsuo Ishimoto wrote:
Hello all,
Can I create ZClass instance without manager role? I tried as following:
Yes, when you create a ZClass, if you check the box to automaticly build your 'constructor' for you, you will also notice that it creates a 'Permission' object for you. Just give any role you want to ability to create your ZClass that permission. -Michel
Hi Michel, On Sat, 21 Aug 1999 22:11:41 -0400 Michel Pelletier <michel@digicool.com> wrote:
Yes, when you create a ZClass, if you check the box to automaticly build your 'constructor' for you, you will also notice that it creates a 'Permission' object for you. Just give any role you want to ability to create your ZClass that permission.
I checked 'Create constructor objects' check box when I defined my ZClass.I also assigned 'add ztest' permission to the 'member' role at '/'. Do I need more setting? Thanks, -------------------------- Atsuo Ishimoto gembook@techie.com Homepage:http://hp.vector.co.jp/authors/VA010598/
On Sun, 22 Aug 1999 12:15:16 +0900 Atsuo Ishimoto <gembook@techie.com> wrote:
I checked 'Create constructor objects' check box when I defined my ZClass.I also assigned 'add ztest' permission to the 'member' role at '/'.
Do I need more setting?
I found I need to map 'Use Factories' permission to 'add ztest' at factory method of the ZClass. It works fine now. -------------------------- Atsuo Ishimoto gembook@techie.com Homepage:http://hp.vector.co.jp/authors/VA010598/
participants (2)
-
Atsuo Ishimoto -
Michel Pelletier