[Zope] RE: [Zope-dev] GenericUserFolder available for beta

Stuart 'Zen' Bishop zen@cs.rmit.edu.au
Fri, 19 Nov 1999 10:08:26 +1100 (EST)


On Thu, 18 Nov 1999, Ian Blenke wrote:

> > > 2. Whenever I add GenericUserFolder to a folder, the folder becomes
> > > "locked".
> > 
> > Locked as in you can no longer view the contents of the folder?
> 
> Exactly that. In fact, I can no longer "manage" that folder either. I can
> repetitively login, but it always returns with a Login:/Password: prompt
> (and management of the page is impossible)

What appears to be happening is that although the Zope superuser will retain 
manage rights over the GUF, users defined within Zope and granted
the Manage role will not.

I'll be looking into this tomorrow (I got a deadline today, and still
an hours worth of email to read :-) ) and will hopefully release a new
beta for Monday.

> My biggest problem still remains: how do I get GenericUserFolder to work?
> (I still need to tie Zope "Roles" to these authenticated users)

Try accessing the contents of the GUF when logged in as the Zope supervisor
(if you arn't already). I think this is my dodgy workaround in
validate() biting me which was due to be looked at again, or something I 
don't understand about the 'aquire permissions' settings that I've
documented.

> If you could throw together a "viable" working *.zexp showing what I'm
> doing wrong, I would greatly appreciate it! If not, anything you can
> suggest would help a great deal as well.

When you create a new GUF, it should be viable. Have a look at the
templates that are copied into the new installation 
(GenericUserFolder/templates/dumb). If you want, you can modify the
default userRoles.dtml code to return 'Manager' (and change 
userAuthenticate.dtml and userList.dtml if you like).

-- 
 ___
   //     Zen (alias Stuart Bishop)     Work: zen@cs.rmit.edu.au
  // E N  Senior Systems Alchemist      Play: zen@shangri-la.dropbear.id.au
 //__     Computer Science, RMIT 	 WWW: http://www.cs.rmit.edu.au/~zen