|
|
||||||||||||||||||
|
|
||||||||||||||||||
![]() |
![]() |
Issue 1 - Revision 5 / June 14, 2002
|
|||
|
Customized User Folders Part I Write your own product that suits you best. - - - - - - - - - - - - By Kristoph Kirchner | May 22, 2002 Introduction Security is an important part of most websites - especially if they provide some content that should be accessible only by registered users. Zope already provides standard security with the Zope user folder.
However, sometimes you might want to store more information about the users or have the user folder react differently than what is possible with the Zope user folder. In that case you can either use one of the existing user folder products or write your own product that suits you best. This article deals with how to use the existing python code of the Zope user folder to create your own user folder. There will be a simple example of how to create an extra property that for users. The BasicsZope's authentication mechanism is defined in the
lib/python/AccessControl
directory in your Zope installation.
Here, you find modules such as
Role.py, Permission.py and
User.py.
The module User.py contains several classes that make up the user folder and all it's function.
The classes are as follows:
The User Classes
The BasicUser class is the super-class for the other user classes. It defines the basics for the authentication and provides interfaces for methods concerning the user information. These methods need to be implemented by any class that sub-classes the BasicUser class.
The BasicUserFolder class contains the methods for authorization and authentication as well as the methods for managing a simple user.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ZopeMag is committed to bringing you the best in Zope Documentation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Reproduction of material from any of ZopeMag's pages without prior written permission is strictly prohibited. Copyright 2003 - 2005 ZopeMag |
|