Changeset 7315 for main


Ignore:
Timestamp:
9 Dec 2011, 10:51:30 (13 years ago)
Author:
uli
Message:

Fix formatting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/authentication.py

    r7240 r7315  
    215215        if not isinstance(credentials, dict):
    216216            return None
    217        
    218217        if not ('login' in credentials and 'password' in credentials):
    219218            return None
     
    223222        if not account.checkPassword(credentials['password']):
    224223            return None
    225         return SIRPPrincipalInfo(id=account.name,
    226                              title=account.title,
    227                              description=account.description,
    228                              email=account.email,
    229                              phone=account.phone,
    230                              user_type=u'user')
     224        return SIRPPrincipalInfo(
     225            id=account.name,
     226            title=account.title,
     227            description=account.description,
     228            email=account.email,
     229            phone=account.phone,
     230            user_type=u'user')
    231231
    232232    def principalInfo(self, id):
     
    234234        if account is None:
    235235            return None
    236         return SIRPPrincipalInfo(id=account.name,
    237                              title=account.title,
    238                              description=account.description,
    239                              email=account.email,
    240                              phone=account.phone,
    241                              user_type=u'user')
     236        return SIRPPrincipalInfo(
     237            id=account.name,
     238            title=account.title,
     239            description=account.description,
     240            email=account.email,
     241            phone=account.phone,
     242            user_type=u'user')
    242243
    243244    def getAccount(self, login):
Note: See TracChangeset for help on using the changeset viewer.