Phil - Thanks so much for the script sample! I've been planning to do exactly that, for the same reason as Joel (lots of users, all to go online at the same time). Now I don't have to search the docs for a starting point - thanks! Joel - I understand the preference for the Owner role, but I'm actually using home-grown user folders, and the local Manager role works better for us. I thought it might for you too, but I guess not. We use a home-grown xmlrpc client (thanks to Marty Stitt, who recently left our company, if he's still reading this list, you're brilliant!) to synchronize users local trees with their remote trees, and don't give them access to the Zope management interface at all, so we probably don't have the same concerns about the Manager role as you. Anyway, I'm glad my early attempt at giving something back didn't go too far awry, even if it wasn't all that helpful. :-) Craig On Wed, 28 Feb 2001, Phil Harris wrote:
Joel,
I apologize if I'm wrong here, but I'm not sure you understood the suggestion correctly.
In Zope it is possible to give a user object a normal role for most of the site but give them a 'local' role for one particular part.
I've created a few sites where people have local management roles and not one of the users has a role of Manager associated.
This is accomplished by the API call:
manage_addLocalRoles(userid, roles, [REQUEST]) Set local roles for a user
This is taken from the excellent Zope Quick Reference (which sadly is slightly out of date, but still a good reference).
So the basic logic is:
1. Create user 2. Create home folder 3. manage_addLocalRoles onto the new folder.
and not a Manager in site ;)
hth
Phil phil.harris@zope.co.uk
On Wednesday 28 February 2001 18:52, Joel Burton wrote:
On Wed, 28 Feb 2001, Craig Dunigan wrote:
Okay, I'm still really new, but I have to start helping out sooner or later, so here goes.
Thanks for your suggestion!
I do something similar by assigning a local role of Manager to each user for his/her own folder. It may then be possible (more knowledgable people, come to my rescue here!) to create all of the user folders from a single account with a global role of Manager, since ownership is not an issue if the user has local Manager permissions?
That is possible, and would work well, I think, but if I could get it working, I think Owner would be better.
I was hoping to take the Owner route b/c I'd have to set up the local role of Mgr for *each* folder for each person (I don't want Jim to manage Jeff's folder), whereas with the Owner schema I can (should be able to?) simple assign for the enclosing /home folder that Owners have certain rights, and as the folders get created, they get those rights.
(Plus, part of the challenge would be that I don't *want* them to do many things that Managers can do--I'd have to create a new Role, 'ContentCreator' or somesuch, with certain permissions, and have them get that, not the Manager role.)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Craig Dunigan Web Programmer Esker Software - Extending the Reach of Information mailto://craig.dunigan@esker.com tel 608.273.6000 ext.362 fax 608.273.8227 http://www.esker.com