~russell/ibid/jira-plugin

« back to all changes in this revision

Viewing changes to ibid/plugins/identity.py

  • Committer: Stefano Rivera
  • Date: 2009-10-16 16:31:34 UTC
  • Revision ID: stefano@rivera.za.net-20091016163134-d6rj65szlrl9afmb
Strip trailing white-space

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
                return
93
93
            elif not admin or username != account.username:
94
94
                return
95
 
        
 
95
 
96
96
        event.session.delete(account)
97
97
        event.session.commit()
98
98
        identify_cache.clear()
121
121
                return
122
122
            elif not admin and username != account.username:
123
123
                return
124
 
        
 
124
 
125
125
        oldname = account.username
126
126
        account.username = newname
127
127
 
160
160
                        .join('identities') \
161
161
                        .filter(func.lower(Identity.identity) == identity.lower()) \
162
162
                        .filter(func.lower(Identity.source) == source.lower()).first()
163
 
                
 
163
 
164
164
                if account:
165
165
                    reverse_attach = True
166
166
                else: