[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - RolePermissionManager.py:1.1.2.3

Barry Warsaw barry@wooz.org
Mon, 17 Dec 2001 11:32:24 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv13414

Modified Files:
      Tag: Zope-3x-branch
	RolePermissionManager.py 
Log Message:
Reformat the method docstrings.


=== Zope3/lib/python/Zope/App/Security/RolePermissionManager.py 1.1.2.2 => 1.1.2.3 ===
     __implements__ = IRolePermissionManager
 
-    """Bind the permission to the role.
-
-    permission must be an IPermission
-    role must be an IRole
-    """
     def grantPermissionToRole( self, permission, role ):
-        self.addCell( permission, role )
+        """Bind the permission to the role.
 
-    """Return the list of roles for the given permission.
+        permission must be an IPermission
+        role must be an IRole
+        """
+        self.addCell( permission, role )
 
-    permission must be an IPermission.  If no roles have been granted this
-    permission, then the empty list is returned.
-    """
     def getRolesForPermission( self, permission ):
-        return self.getColumnsForRow( permission )
+        """Return the list of roles for the given permission.
 
-    """Return the list of permissions for the given role.
+        permission must be an IPermission.  If no roles have been granted this
+        permission, then the empty list is returned.
+        """
+        return self.getColumnsForRow( permission )
 
-    role must be an IRole.  If no permissions have been granted to this
-    role, then the empty list is returned.
-    """
     def getPermissionsForRole( self, role ):
+        """Return the list of permissions for the given role.
+
+        role must be an IRole.  If no permissions have been granted to this
+        role, then the empty list is returned.
+        """
         return self.getRowsForColumn( role )
 
     def setPermissionAcquired(self, permission, flag):