[Zope-CMF] Re: [Zope] Newbie Qu: user login in private folders

Matthew matthew@exhibit.com.au
Tue, 10 Dec 2002 13:46:52 +0800


Ausum,

Many thanks for this.  I have done as you suggested and it works.

Is there any documentation I can read for further information about this 
as the search engine for the cmf list doesn't appear to work at the moment.

In particular:

1. when new users log in for the first time, there is no email address, 
and Zope generates an error.  Is there a standard way around this, or 
should I create a method to get the email address?
2.  creating all the users at the top level CMF folder is fine, but then 
they can have access at a level higher than I want them too.  When I 
create a user folder at a lower level, the CMF management screen (and 
also log on) doesn't find them.  How can I do this?

Regards,

Matthew.
-------- Original Message --------
Subject: Re: [Zope] Newbie Qu: user login in private folders
Date: Fri, 6 Dec 2002 10:25:49 -0500
From: Ausum Studio <ausum_studio@hotmail.com>
To: Matthew <matthew@exhibit.com.au>,<zope-cmf@zope.org>
References: <3DF06E96.40901@exhibit.com.au>



1. Create the folder for one of the clients, let's name it 'client1_folder',
from the CMF user interface (needs to be a portal folder).
2. Enter ZMI and go the 'security' tab of 'client1_folder'. Look for the row
'Access contents information' and uncheck the checkbox under 'Acquire
permission settings' and check it under 'Owner'. Accept changes.
3. Click on the 'Contents' tab and add a 'Cookie Crumbler' object. The id is
not important.
4. Back to the CMF interface (logged as manager) go 'client1_folder' and
click on 'Local Roles'. Search for user 'client1' (or whatever your user's
id is), then assing him/her the 'Owner' role.

That's all. As you'll see, you don't need to create a user folder at each
portal folder, just to set up its local roles. Moreover, all the steps
mentioned above can be summarized in an external method, so that you can
attach it to a member joining or to a batch process.



Ausum




ps. This is an issue for the zope-cmf list.Please send any further questions
there.


----- Original Message -----
From: "Matthew" <matthew@exhibit.com.au>
To: <zope@zope.org>
Sent: Friday, December 06, 2002 4:32 AM
Subject: [Zope] Newbie Qu: user login in private folders


> Hi all,
>
> Having a really hard time here.  I'm trying to create separate folders
> for each of my clients, and I don't want anyone else but them to access
> anything in the folder.
>
> I've read many ways of settings the permissions to make the folder
> private, and I think I have the hang of that.
>
> The problem: I create a user in their private folder, but they can't log
> in.  The only allowable log-ins seem to come from the top CMF folder.
>
> I even tried creating a test without any restrictions just to log in-
> but still only users from the top CMF folder can log in.
>
> Can someone please let me know what I'm doing wrong, or point me in the
> right direction.  I know everyones busy, but I really can't figure out
> what's happening.
>
> Many thanks.
>
> Matthew.
>
>
> _______________________________________________
> 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 )
>