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 36 and Version 37 of IdentityManagement


Ignore:
Timestamp:
04/04/06 12:27:06 (13 years ago)
Author:
fredlin
Comment:

clear API

Legend:

Unmodified
Added
Removed
Modified
  • IdentityManagement

    v36 v37  
    141141 
    142142@identity.require( identity.in_any_group( "admin", "editor" ) ) 
     143 
     144@identity.require( identity.not_anonymous() ) 
     145 
    143146}}} 
    144147 
     
    154157}}} 
    155158 
     159==== Restrict access host ==== 
     160{{{ 
     161#!python 
     162@identity.require( identity.from_host( "127.0.0.1" )) 
     163 
     164@identity.require( identity.from_any_host( , , )) 
     165}}} 
     166 
    156167=== Combination Permission Control === 
    157168 
    158 You can use decorators like theses: 
     169You can combine several permissions by "Any" or "All": 
    159170 
    160171{{{ 
     
    163174}}} 
    164175 
    165 The require decorator checked whether the visitor was a member of the  
    166 admin group AND had the permission foo AND had the permission bar. 
     176The require decorator checked whether the visitor was a member of the "admin" group or had the "edit" permission. 
    167177 
    168178{{{