Changeset 5761

Show
Ignore:
Timestamp:
11/24/08 10:30:17 (2 months ago)
Author:
Gustavo
Message:

Minor enhancements to section on how to customize the way repoze.what is configured by TG

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • docs/2.0/docs/main/Auth/Customization.rst

    r5751 r5761  
    11Customizing authentication and authorization 
    22============================================ 
     3 
     4:Status: Official 
     5 
     6Here you will learn how to customize the way TurboGears configures 
     7:mod:`repoze.what` (and thus :mod:`repoze.who` indirectly) for you, using the 
     8:mod:`repoze.what` SQL plugin. 
     9 
    310 
    411Customizing the model structure assumed by the quickstart 
     
    318325 
    319326 
    320 Disabling the quickstart 
    321 ------------------------ 
    322  
    323 If you need more flexibility than that provided by the quickstart, you may 
    324 disable it by removing (or commenting) the following line from  
     327Disabling authentication and authorization 
     328------------------------------------------ 
     329 
     330If you need more flexibility than that provided by the quickstart, or you are  
     331not going to use :mod:`repoze.who` and :mod:`repoze.what`, you should prevent 
     332TurboGears from dealing with authentication/authorization by removing (or  
     333commenting) the following line from  
    325334``{yourproject}.config.app_cfg``:: 
    326335 
    327     base_config.auth_backend = 'sqlalchemy
    328  
    329 Then you may also want to delete those settings like ``base_config.sa_auth.*``, 
    330 because they'll be ignored. 
     336    base_config.auth_backend = '{whatever you find here}
     337 
     338Then you may also want to delete those settings like ``base_config.sa_auth.*`` 
     339-- they'll be ignored.