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 24 and Version 25 of IdentityManagement


Ignore:
Timestamp:
03/29/06 08:18:14 (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IdentityManagement

    v24 v25  
    110110To turn on identity login for an entire controller(restrict access to whole subdirectory), you should be able to derive from identity.SecureResource and define a require attribute at the class level.  
    111111 
     112{{{ 
     113#!python 
    112114class MySecureController( turbogears.Controller,   
    113115identity.SecureResource ): 
     
    115117 
    116118        # etc...  
     119}}} 
    117120 
    118121You can apply whatever decorators you want on the methods of the Toxicologia instance. So each method could have additional restrictions. And Toxicologia could have SecureObjects as well. However, access to exposed methods of Toxicologia and any SecureObjects would have to satisfy the authorisation requirements for Toxicologia.