Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 53 and Version 54 of IdentityManagement


Ignore:
Timestamp:
04/09/06 10:27:56 (13 years ago)
Author:
godoy
Comment:

Some other minor adjustments and notes for versions previous to the PEP8 rearrangement.

Legend:

Unmodified
Added
Removed
Modified
  • IdentityManagement

    v53 v54  
    11= Identity Management = 
    22 
    3 Work Version: > 0.92a4 
     3    '''NOTE''' 
     4 
     5    This page describes the setup for versions after SVN revsion 1108 and released versions > 0.9a4.  There were changes to make identity PEP 8 compatible. 
     6 
     7    For prior versions: change "user_name", "group_name" and "permssions_name" to "userId", "groupId" and "permissionsId", respectively.  Also change "displayName" and "emailAddress" to "display_name" and "email_address. 
    48 
    59The TurboGears identity management architecture was originally designed and written by [http://metrocat.org/nerd/2005/10/identity-management-for-turbogears Jeff Watkins]. 
     
    179183}}} 
    180184 
    181 This decorator grants acces to members of the "admin" group as well as any user who has the "edit" permission. 
     185This decorator grants access to members of the "admin" group as well as any user who has the "edit" permission. 
    182186 
    183187{{{ 
     
    287291 
    288292Take a look at the decorators in turbogears/identity/conditions.py. They'll give you a head-start on what you'll have to do. 
     293 
     294Also, to make your life easier, remember using turbogears.decorator.  It will give you a solid basis and is used in other default decorators as well. 
    289295 
    290296---- 
     
    385391>>> from turbogears.identity.soprovider import * 
    386392>>> hub.begin() 
    387 >>> u=TG_User(userId="jeff", emailAddress="jeff@metrocat.org", 
    388             displayName="Jeff Watkins", password="xxxxx") 
    389 >>> g=TG_Group(groupId="admin", displayName="Administrators") 
     393>>> u=TG_User(user_name="jeff", email_address="jeff@metrocat.org", 
     394            display_name="Jeff Watkins", password="xxxxx") 
     395>>> g=TG_Group(group_name="admin", display_name="Administrators") 
    390396>>> hub.commit() 
    391397>>> 
     
    405411>>> 
    406412}}} 
    407  
    408