[Checkins]
SVN: z3c.securitytool/trunk/src/z3c/securitytool/interfaces.py
updated interfaces.py to be accurate
Daniel Blackburn
blackburnd at gmail.com
Wed Feb 20 12:25:50 EST 2008
Log message for revision 84080:
updated interfaces.py to be accurate
Changed:
U z3c.securitytool/trunk/src/z3c/securitytool/interfaces.py
-=-
Modified: z3c.securitytool/trunk/src/z3c/securitytool/interfaces.py
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/interfaces.py 2008-02-20 15:10:17 UTC (rev 84079)
+++ z3c.securitytool/trunk/src/z3c/securitytool/interfaces.py 2008-02-20 17:25:50 UTC (rev 84080)
@@ -1,4 +1,50 @@
from zope.interface import Interface
class ISecurityChecker(Interface):
- """TODO"""
+
+ def getPermissionSettingsForAllViews(self,interfaces,skin,selectedPermission=None):
+ """ gets the permission settings for all views"""
+ def aggregateMatrices(self):
+ """ aggregates the two matricies together """
+
+ def getReadPerm(self,view_reg):
+ """ gets the read permission for the view """
+
+ def populateMatrix(self,viewInstance,view_reg):
+ """ workhorse of the SecurityChecker class """
+
+ def updateRolePermissionSetting(self,permSetting,principal,role,name):
+ """ updates the permission settings """
+
+ def populatePermissionMatrix(self,read_perm,principalPermissions):
+ """ populates the permission matrix """
+
+
+class IPermissionDetails(Interface):
+ def permissionDetails(principal,read_perm,settings, rolePermissions):
+ """ workhorse of the PermissionDetails class """
+
+class IPrincipalDetails(Interface):
+ def principalPermissions(principal_id, skin):
+ """ main workhorse of the class """
+ def orderRoleTree(self):
+ """ This is an ordering method for the roleTree """
+
+ def updatePrincipalMatrix( settings):
+ """ this is called to update the roles and permissions"""
+
+ def updatePrincipalMatrixRoles( name, item):
+ """ method to up date the matrix roles """
+
+ def updateRoleTree(item,parentList,curRole):
+ """ method to update the matrix roletree """
+
+ def updateRoles(item,role,curRole):
+ """ method to update the roles """
+
+ def updatePrincipalMatrixPermissions( item):
+ """ method to update the permissions """
+
+ def updatePermissionTree(item,prinPerms):
+ """ method to update the permission tree """
+
More information about the Checkins
mailing list