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 12 and Version 13 of IdentityManagement


Ignore:
Timestamp:
01/02/06 16:40:58 (13 years ago)
Author:
sc@…
Comment:

Weird namespace issue for identity package

Legend:

Unmodified
Added
Removed
Modified
  • IdentityManagement

    v12 v13  
    106106}}} 
    107107 
    108 Note: You may need to revise the above code for the @identity.require decorator. In a [http://groups.google.com/group/turbogears/browse_thread/thread/8dc90943e2cce3ce/42de9e3ae86f7aaf?q=identity&rnum=1#42de9e3ae86f7aaf recent mailing list post], Jeff Watkins says: 
     108Note: You may need to revise the above code for the @identity.require decorator. In a [http://groups.google.com/group/turbogears/browse_thread/thread/8dc90943e2cce3ce/42de9e3ae86f7aaf?q=identity&rnum=1#42de9e3ae86f7aaf recent mailing list post], Jeff Watkins writes the following.  
    109109{{{ 
    110110n the past you decorated your methods as such: 
     
    147147because that seems *so* model specific.  
    148148}}} 
     149 
     150However, you may need to use the in_group, in_all_groups, etc. functions in the {{{identity}}} namespace. For example: 
     151{{{ 
     152@identity.require( in_group( "admin" ) ) 
     153}}} 
     154changes to 
     155{{{ 
     156@identity.require( identity.in_group( "admin" ) ) 
     157}}} 
     158 
    149159 
    150160=== Step 6 - Turn on Identity management ===