/docs/MercurialApp Gawel's repository

fix tests

authorGael Pasgrimaud <gael@gawel.org>
Fri Mar 12 19:58:49 2010 +0100 (4 months ago)
changeset 11578cd1888a2c1
parent 114 f166b03b2a43
child 116 e69aa8254102
fix tests
     1.1 --- a/hgapp/utils.py	Fri Mar 12 17:32:44 2010 +0100
     1.2 +++ b/hgapp/utils.py	Fri Mar 12 19:58:49 2010 +0100
     1.3 @@ -21,9 +21,11 @@
     1.4      credentials = req.environ.get('repoze.what.credentials', {})
     1.5      permissions = credentials.get('permissions', ())
     1.6  
     1.7 -    if user:
     1.8 +    if user and permissions:
     1.9          log.debug('%(PATH_INFO)s: %(REMOTE_USER)s - %(repoze.what.credentials)s',
    1.10                    req.environ)
    1.11 +    elif user:
    1.12 +        log.debug('%(PATH_INFO)s: %(REMOTE_USER)s', req.environ)
    1.13  
    1.14      def append(option):
    1.15          if user: