diff MoinMoin/auth/php_session.py @ 948:28ea5b3802b1

whitespace-only cleanup
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 17 Jul 2006 03:43:33 +0200
parents ab9cd47eb066
children 9406e02388cf
line wrap: on
line diff
--- a/MoinMoin/auth/php_session.py	Mon Jul 17 03:08:12 2006 +0200
+++ b/MoinMoin/auth/php_session.py	Mon Jul 17 03:43:33 2006 +0200
@@ -24,7 +24,7 @@
             @param s_path: The path where the PHP sessions are stored.
             @param s_prefix: The prefix of the session files.
         """
-        
+
         self.s_path = s_path
         self.s_prefix = s_prefix
         self.apps = apps
@@ -34,18 +34,18 @@
             """ Extracts name, fullname and email from the session. """
             username = session['egw_session']['session_lid'].split("@", 1)[0]
             known_accounts = session['egw_info_cache']['accounts']['cache']['account_data']
-            
+
             # if the next line breaks, then the cache was not filled with the current
             # user information
             user_info = [value for key, value in known_accounts.items()
                          if value['account_lid'] == username][0]
             name = user_info.get('fullname', '')
             email = user_info.get('email', '')
-            
+
             dec = lambda x: x and x.decode("iso-8859-1")
-            
+
             return dec(username), dec(email), dec(name)
-        
+
         user_obj = kw.get('user_obj')
         try:
             cookie = Cookie.SimpleCookie(request.saved_cookie)
@@ -61,9 +61,9 @@
                         break
             else:
                 return user_obj, True
-            
+
             user = user.User(request, name=username, auth_username=username)
-            
+
             changed = False
             if name != user.aliasname:
                 user.aliasname = name
@@ -71,7 +71,7 @@
             if email != user.email:
                 user.email = email
                 changed = True
-            
+
             if user:
                 user.create_or_update(changed)
             if user and user.valid: