Zope Member Log In behavior
Hi, When you log in to Zope's management screens, I've noticed that users with access only to deeper folders are forwarded to their deeper folders automatically. They never see the Root folder or any other folders above theirs. I'd like to mimic this, how would I make a common login that redirects an accepted "member" user to their home folder? -Jonathan Cyr cyrj@cyr.info
Jonathan Cyr wrote at 2004-5-31 18:12 -0400:
When you log in to Zope's management screens, I've noticed that users with access only to deeper folders are forwarded to their deeper folders automatically. They never see the Root folder or any other folders above theirs.
I just tried -- and could not observe that (which I expected). Click at the "/" in the "breadcrumbs" of any management page and you will see that you are not forwarded. -- Dieter
You're right, I've been caught by my own virtual domain, my apologies... Here's what I'm trying to do. My website/app has a common folder to which members have view only access, then inside this common folder, each user member has their own folder with significantly more access. What I'm hoping to do is provide a common login in the common folder, that somehow iterates through the member sub-folders and logs them in there. (Note: the member sub-folders are folderish python products of my own design) I'm trying to avoid giving each user rights to the common folder and preventing acquistion of the user folder through each member folder if I can. I thought the old Zope.org site worked like this, maybe that's where I saw it. I know the new one is Plone-like and login is probably handled in the CMF/Plone bundle of code. Any magic Zope-ish way to do such a thing? I use the regular Zope HTTP authentication and User Folder. Thanks, -Jon Dieter Maurer wrote:
Jonathan Cyr wrote at 2004-5-31 18:12 -0400:
When you log in to Zope's management screens, I've noticed that users with access only to deeper folders are forwarded to their deeper folders automatically. They never see the Root folder or any other folders above theirs.
I just tried -- and could not observe that (which I expected).
Click at the "/" in the "breadcrumbs" of any management page and you will see that you are not forwarded.
Jonathan Cyr wrote:
Here's what I'm trying to do. My website/app has a common folder to which members have view only access, then inside this common folder, each user member has their own folder with significantly more access.
I do hope that access is provided by local roles?
What I'm hoping to do is provide a common login in the common folder, that somehow iterates through the member sub-folders and logs them in there. (Note: the member sub-folders are folderish python products of my own design)
How are you folder stuctured? /common /member1 /member2 or: /common /common/member1 /common/member2 ? The second option is probably better for you here...
I'm trying to avoid giving each user rights to the common folder and preventing acquistion of the user folder through each member folder if I can.
Why? If the users don't have the permissions needed to do aything with the userfolder, then what's the problem? Why don't you give the 'Authenticated' role the 'Access contents information' role in the common folder, and then give each member the 'Manager' role as a local role in their member folder?
Any magic Zope-ish way to do such a thing?
No magic, just learn a bit more about role to permission mapping and lcoal roles. Maybe proxy roles too if required... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
The folders are stuctured... - Common - Member 1 - Member 2 I'd like to provide a login at the Common folder, and drop the member in their Member folder. Each user has an user def entry in their Member folder only. If I put each user in the Common folder, they'll have access to all of the member folders, not just theirs. My system works fine today... members just have to browse to their Member page and login there... then all is fine... I was hoping to provide one login for all members, one folder up. Hoping for an iterator of some kind. Hopefully clearer, -Jon Chris Withers wrote:
Jonathan Cyr wrote:
Here's what I'm trying to do. My website/app has a common folder to which members have view only access, then inside this common folder, each user member has their own folder with significantly more access.
I do hope that access is provided by local roles?
What I'm hoping to do is provide a common login in the common folder, that somehow iterates through the member sub-folders and logs them in there. (Note: the member sub-folders are folderish python products of my own design)
How are you folder stuctured?
/common /member1 /member2
or:
/common /common/member1 /common/member2
?
The second option is probably better for you here...
I'm trying to avoid giving each user rights to the common folder and preventing acquistion of the user folder through each member folder if I can.
Why?
If the users don't have the permissions needed to do aything with the userfolder, then what's the problem?
Why don't you give the 'Authenticated' role the 'Access contents information' role in the common folder, and then give each member the 'Manager' role as a local role in their member folder?
Any magic Zope-ish way to do such a thing?
No magic, just learn a bit more about role to permission mapping and lcoal roles. Maybe proxy roles too if required...
Chris
Jonathan Cyr wrote:
The folders are stuctured...
- Common - Member 1 - Member 2
I'd like to provide a login at the Common folder, and drop the member in their Member folder. Each user has an user def entry in their Member folder only. If I put each user in the Common folder, they'll have access to all of the member folders, not just theirs.
Why? Don't give them the role you're worried about in the common folder and assign it as a local role in their member folder...
My system works fine today... members just have to browse to their Member page and login there... then all is fine... I was hoping to provide one login for all members, one folder up. Hoping for an iterator of some kind.
Sure, provide the login page in the common folder, with a redirect to the member folder on successful login, if that's what you want... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Jonathan Cyr wrote at 2004-6-3 19:11 -0400:
Here's what I'm trying to do. My website/app has a common folder to which members have view only access, then inside this common folder, each user member has their own folder with significantly more access.
Usually this is handled with a central UserFolder and different local roles in subhierarchies as necessary. Please consult the section in the Zope Book describing local roles. -- Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
Jonathan Cyr