[Checkins] SVN: Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/PluggableAuthService.py Fix line wrapping.

Stefan H. Holek stefan at epy.co.at
Tue Mar 3 14:55:41 EST 2009


Log message for revision 97452:
  Fix line wrapping.

Changed:
  U   Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/PluggableAuthService.py

-=-
Modified: Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/PluggableAuthService.py
===================================================================
--- Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/PluggableAuthService.py	2009-03-03 19:44:38 UTC (rev 97451)
+++ Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/PluggableAuthService.py	2009-03-03 19:55:40 UTC (rev 97452)
@@ -736,7 +736,8 @@
     security.declarePrivate( '_canMasquerade' )
     def _canMasquerade( self, plugins, user_id, name=None, request=None ):
 
-        """ Return True if masquerading is enabled and user_id has the Manager or Masquerader role.
+        """ Return True if masquerading is enabled and user_id has the
+            Manager or Masquerader role.
         """
         if not masquerading():
             return False
@@ -749,8 +750,7 @@
 
             roles = rolemaker.getRolesForPrincipal( user, request )
 
-            if roles and ('Manager' in roles or
-                'Masquerader' in roles):
+            if roles and ('Manager' in roles or 'Masquerader' in roles):
                 return True
 
         return False



More information about the Checkins mailing list