Changeset - ddd05df2aced
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 12 years ago 2013-05-28 16:21:27
marcin@python-works.com
added more info into __repr__ of auth user for better debugging and logging
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/auth.py
Show inline comments
 
@@ -445,8 +445,8 @@ class  AuthUser(object):
 
            return False
 

	
 
    def __repr__(self):
 
        return "<AuthUser('id:%s:%s|%s')>" % (self.user_id, self.username,
 
                                              self.is_authenticated)
 
        return "<AuthUser('id:%s[%s] ip:%s auth:%s')>"\
 
            % (self.user_id, self.username, self.ip_addr, self.is_authenticated)
 

	
 
    def set_authenticated(self, authenticated=True):
 
        if self.user_id != self.anonymous_user.user_id:
0 comments (0 inline, 0 general)