Changeset 5768

Show
Ignore:
Timestamp:
11/24/08 15:41:51 (2 months ago)
Author:
Gustavo
Message:

Applied patch provided by Jorge Vargas to make controller-wide authorization more verbose and thus easier to debug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/controllers.py

    r5743 r5768  
    518518            self.require is None or \ 
    519519            self.require.eval_with_environ(environ, errors): 
     520            log.debug('Successed controller authorization at %s', 
     521                      pylons.request.path) 
    520522            return True 
    521523 
    522         # if we did not return this is an error :
    523         # TODO: do something with the errors variable like informing our user... 
     524        log.debug('Failed controller authorization at %s', pylons.request.path
     525        flash(errors, status="status_error") 
    524526        return False 
    525527