[Zope] Zope and restricted access for different users

Dieter Maurer dieter@handshake.de
Fri, 14 Dec 2001 21:27:00 +0100


Flip Hoedemaeker writes:
 > What I would like to do is create a specific set of users who will be
 > redirected to specific subfolders according to the login and password they
 > provide, starting from a main portal. I've tried with the acl_user system,
 > but I don't seem to be able to get it right. I'm getting confused with the
 > differences in authorisation, permission, etc. I'm only concerned with
 > people actually accessing (viewing) the specific parts of a site. Can
 > somebody point me into a starting direction here?
Not trivial...

You can send them to a (protected) Python Script (maybe one that bind
"traversal_subpath").
The Python Script looks at the user (his roles) and
redirects as necessary.

This is good for a single entry point.
If your "redirection" should work all over the site,
you need the "traversal_subpath" binding and use
some form of "restrictedTraverse" to reach the final
object.

Some background reading may be adequate: the Zope Book or

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>



Dieter