[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - AttributeRolePermissionManager.py:1.1.2.6 IAttributePrincipalPermissionManageable.py:1.1.2.2 IAttributePrincipalRoleManageable.py:1.1.2.2 IAttributeRolePermissionManageable.py:1.1.2.3 IAuthenticationService.py:1.1.2.5 IPermissionService.py:1.1.2.3 IPrincipal.py:1.1.2.2 IRoleService.py:1.1.2.2 PrincipalPermissionView.py:1.1.2.2 PrincipalRegistry.py:1.1.2.12 PrincipalRoleView.py:1.1.2.3 RolePermissionView.py:1.1.2.6 ZopeSecurityPolicy.py:1.1.2.15 metaConfigure.py:1.1.2.22

Tres Seaver tseaver@zope.com
Tue, 12 Feb 2002 15:56:34 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	AttributeRolePermissionManager.py 
	IAttributePrincipalPermissionManageable.py 
	IAttributePrincipalRoleManageable.py 
	IAttributeRolePermissionManageable.py 
	IAuthenticationService.py IPermissionService.py IPrincipal.py 
	IRoleService.py PrincipalPermissionView.py 
	PrincipalRegistry.py PrincipalRoleView.py 
	RolePermissionView.py ZopeSecurityPolicy.py metaConfigure.py 
Log Message:


  - Normalize file headers.

  - Fix violations of "80 character" rule.


=== Zope3/lib/python/Zope/App/Security/AttributeRolePermissionManager.py 1.1.2.5 => 1.1.2.6 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Zope.ComponentArchitecture import getService


=== Zope3/lib/python/Zope/App/Security/IAttributePrincipalPermissionManageable.py 1.1.2.1 => 1.1.2.2 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Persistence.IPersistent import IPersistent


=== Zope3/lib/python/Zope/App/Security/IAttributePrincipalRoleManageable.py 1.1.2.1 => 1.1.2.2 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Persistence.IPersistent import IPersistent


=== Zope3/lib/python/Zope/App/Security/IAttributeRolePermissionManageable.py 1.1.2.2 => 1.1.2.3 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Persistence.IPersistent import IPersistent


=== Zope3/lib/python/Zope/App/Security/IAuthenticationService.py 1.1.2.4 => 1.1.2.5 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Interface import Interface


=== Zope3/lib/python/Zope/App/Security/IPermissionService.py 1.1.2.2 => 1.1.2.3 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Interface import Interface


=== Zope3/lib/python/Zope/App/Security/IPrincipal.py 1.1.2.1 => 1.1.2.2 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Interface import Interface


=== Zope3/lib/python/Zope/App/Security/IRoleService.py 1.1.2.1 => 1.1.2.2 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from Interface import Interface


=== Zope3/lib/python/Zope/App/Security/PrincipalPermissionView.py 1.1.2.1 => 1.1.2.2 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+##############################################################################
+"""
+
+$Id$
+"""
 import time
 
 from Zope.PageTemplate.PageTemplateFile import PageTemplateFile
@@ -31,7 +46,8 @@
             ppm.unsetPermissionForPrincipal(permission , principal)
 
         if REQUEST is not None:
-            return self.index(message="Settings changed at %s" % time.ctime(time.time()))
+            return self.index(message="Settings changed at %s"
+                                        % time.ctime(time.time()))
 
     def grantPermissions(self, principal_id, permission_ids, REQUEST=None):
         """Form action granting a list of permissions to a principal"""
@@ -43,7 +59,8 @@
             permission = permission_service.getPermission(perm_id)
             ppm.grantPermissionToPrincipal(permission , principal)
         if REQUEST is not None:
-            return self.index(message="Settings changed at %s" % time.ctime(time.time()))
+            return self.index(message="Settings changed at %s"
+                                        % time.ctime(time.time()))
 
     def denyPermissions(self, principal_id, permission_ids, REQUEST=None):
         """Form action denying a list of permissions for a principal"""
@@ -55,7 +72,8 @@
             permission = permission_service.getPermission(perm_id)
             ppm.denyPermissionToPrincipal(permission , principal)
         if REQUEST is not None:
-            return self.index(message="Settings changed at %s" % time.ctime(time.time()))
+            return self.index(message="Settings changed at %s"
+                                        % time.ctime(time.time()))
 
     # Methods only called from the zpt view
     def getUnsetPermissionsForPrincipal(self, principal_id):
@@ -72,8 +90,11 @@
         return result
         
     def getPermissionsForPrincipal(self, principal_id, setting_name):
-        """Returns list of permissions with the given setting_name string for the principal
-        Return empty list if there are no permissions"""
+        """Return a list of permissions with the given setting_name
+           string for the principal.
+           
+           Return empty list if there are no permissions.
+        """
     
         ppmap = getAdapter(self.getContext(), IPrincipalPermissionMap)
         principal = self.get_principal(principal_id)


=== Zope3/lib/python/Zope/App/Security/PrincipalRegistry.py 1.1.2.11 => 1.1.2.12 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 from IAuthenticationService import IAuthenticationService


=== Zope3/lib/python/Zope/App/Security/PrincipalRoleView.py 1.1.2.2 => 1.1.2.3 ===
     "local roles").
 
-Revision information: $Id$
+$Id$
 """
 
 import time


=== Zope3/lib/python/Zope/App/Security/RolePermissionView.py 1.1.2.5 => 1.1.2.6 ===
 """
 
-Revision information: $Id$
+$Id$
 """
 
 import os, time


=== Zope3/lib/python/Zope/App/Security/ZopeSecurityPolicy.py 1.1.2.14 => 1.1.2.15 ===
+##############################################################################
 #
-# Copyright (c) 2001 Zope Coporation and Contributors.  All Rights Reserved.
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
 # Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
@@ -8,10 +8,11 @@
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
 # FOR A PARTICULAR PURPOSE.
-'''Define Zope\'s default security policy
+##############################################################################
+""" Define Zope\'s default security policy
 
-
-$Id$'''
+$Id$
+"""
 __version__='$Revision$'[11:-2]
 
 import string
@@ -37,7 +38,8 @@
 from Zope.App.Security.PrincipalRoleManager import principalRoleManager
 from Zope.App.Security.Settings import Allow, Deny, Assign, Remove, Unset
 
-getPermissionsForPrincipal = principalPermissionManager.getPermissionsForPrincipal
+getPermissionsForPrincipal = \
+                principalPermissionManager.getPermissionsForPrincipal
 getPermissionsForRole      = rolePermissionManager.getPermissionsForRole
 getRolesForPrincipal       = principalRoleManager.getRolesForPrincipal
 


=== Zope3/lib/python/Zope/App/Security/metaConfigure.py 1.1.2.21 => 1.1.2.22 ===
+##############################################################################
 #
-# Copyright (c) 2001 Zope Coporation and Contributors.  All Rights Reserved.
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
 # Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
@@ -8,8 +8,12 @@
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
 # FOR A PARTICULAR PURPOSE.
+##############################################################################
+""" Register security related configuration directives.
+
+$Id$
+"""
 
-""" Register security related configuration directives """
 
 from Zope.Configuration.name import resolve
 from protectClass import protectClass
@@ -19,7 +23,8 @@
 from SecurityManager import setSecurityPolicy
 from PrincipalRegistry import principalRegistry
 from RolePermissionManager import rolePermissionManager as role_perm_mgr
-from PrincipalPermissionManager import principalPermissionManager as principal_perm_mgr
+from PrincipalPermissionManager import principalPermissionManager \
+        as principal_perm_mgr
 from PrincipalRoleManager import principalRoleManager as principal_role_mgr
 
 def defaultPolicy(name):