• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 26. New Principal-Source Plug-ins > Step 3: Implementing the Plug-in

Step 3: Implementing the Plug-in

The implementation of the plug-in should be straightforward and bear no surprises. The tests already express all the necessary semantics. The only thing we have not discussed yet is the data structure of the principal itself. In this case, you can reuse the SimplePrincipal class, which is a basic IUser implementation that contains all the data fields (IUserSchemafied) relevant to a principal: ID, login (username), password, title, and description.

Note that in Zope 3 the principal knows absolutely nothing about its roles, permissions, or anything else about security. That information is handled by other components of the system and is subject to policy settings.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint