Hello, I been trying to limit the options that get display on define group of users, Is there a way to limit the options on the selection drop menu for a "Add a new item" for a specific previously define group? The case is that I jus want some of the currently install products to show up on some groups and other on another set of groups but not all, because even when I have deny permissions to create new objects they still appear and then the users can install what ever they want, and this is not good, hope some one cud give, hint or a clue as to how to acomplish this task. Thanks in advanced Sam
Francisco, Zclasses come to your rescue here. If you create a zclass based product that is descended from ObjectManager then in the product management screen you can specify which products a person can add (you'll find this in the sub-objects tab of the zclass). Play about with it, it works great. Phil phil@philh.org ----- Original Message ----- From: Francisco Sam Castillo <fsam@proyecto-web.com.mx> To: <zope@zope.org> Sent: Wednesday, September 15, 1999 7:17 AM Subject: [Zope] Add new item menu...
Hello, I been trying to limit the options that get display on define group of users, Is there a way to limit the options on the selection drop menu for a "Add a new item" for a specific previously define group?
The case is that I jus want some of the currently install products to show up on some groups and other on another set of groups but not all, because even when I have deny permissions to create new objects they still appear and then the users can install what ever they want, and this is not good, hope some one cud give, hint or a clue as to how to acomplish this task.
Thanks in advanced
Sam
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
At 08:17 15/09/99 , Francisco Sam Castillo wrote:
Hello, I been trying to limit the options that get display on define group of users, Is there a way to limit the options on the selection drop menu for a "Add a new item" for a specific previously define group?
The case is that I jus want some of the currently install products to show up on some groups and other on another set of groups but not all, because even when I have deny permissions to create new objects they still appear and then the users can install what ever they want, and this is not good, hope some one cud give, hint or a clue as to how to acomplish this task.
Thanks in advanced
What version of Zope do you use? Zope 2 does exactly this, it filters the addable items list on what items the user actually has permission to add. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
Martijn Pieters wrote:
....
Hello, I been trying to limit the options that get display on define group of users, Is there a way to limit the options on the selection drop menu for a "Add a new item" for a specific previously define group? ....
What version of Zope do you use? Zope 2 does exactly this, it filters the addable items list on what items the user actually has permission to add.
Yes I though as much (currently using 2.0 final) but you see I am using Zgold product to create a registration area for my site, and the python method use to create users and their directories, grants Manager status to the new user on their folder, and no matter how detail you go about defining security rights, the new user will inherit the managers rights I guess by adquisition, so the user breaches security and has full access to all products installed, no matter which set of security options are set. So I have modified the python method to grant only Owner rights and have also stablish the access scheme I want to grant but when this is done the user gets bock out of the non wanted to use areas but still can see them from the selection menu...and if the user selects them zope will send a nasty erro message which makes you feel like there is an error when there's non, BTW is there a way to catch errors and display an alternate solution from the standard_error_html? So this is my dilema sorry to write so much... If you have any ideas as to how to change this I would appreciete it a lot, this is driving me crazy... Sam
At 11:38 15/09/99 , Francisco Sam Castillo wrote:
Martijn Pieters wrote:
....
Hello, I been trying to limit the options that get display on define group of users, Is there a way to limit the options on the selection drop menu for a "Add a new item" for a specific previously define group? ....
What version of Zope do you use? Zope 2 does exactly this, it filters the addable items list on what items the user actually has permission to add.
Yes I though as much (currently using 2.0 final) but you see I am using Zgold product to create a registration area for my site, and the python method use to create users and their directories, grants Manager status to the new user on their folder, and no matter how detail you go about defining security rights, the new user will inherit the managers rights I guess by adquisition, so the user breaches security and has full access to all products installed, no matter which set of security options are set.
So I have modified the python method to grant only Owner rights and have also stablish the access scheme I want to grant but when this is done the user gets bock out of the non wanted to use areas but still can see them from the selection menu...and if the user selects them zope will send a nasty erro message which makes you feel like there is an error when there's non, BTW is there a way to catch errors and display an alternate solution from the standard_error_html?
So this is my dilema sorry to write so much...
If you have any ideas as to how to change this I would appreciete it a lot, this is driving me crazy...
You should create a new role, like Members, and assign that role to your users. Then you can allow them to 'View Managementscreens' in you members subfolder, and add all the object add permissions you want them to have. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (3)
-
Francisco Sam Castillo -
Martijn Pieters -
Phil Harris