[Zope] Zope Member Log In behavior

Chris Withers chris at simplistix.co.uk
Fri Jun 4 04:21:20 EDT 2004


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




More information about the Zope mailing list