[Zope-Checkins] CVS: Zope/lib/python/AccessControl - PermissionRole.py:1.11 ZopeSecurityPolicy.py:1.13

Tres Seaver tseaver@zope.com
Wed, 17 Oct 2001 18:01:43 -0400


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv23359

Modified Files:
	PermissionRole.py ZopeSecurityPolicy.py 
Log Message:


  - Comment out dependency on cAccessControl (until it works).

  - Fix typo ('s/Permision/Permission').


=== Zope/lib/python/AccessControl/PermissionRole.py 1.10 => 1.11 ===
 __version__='$Revision$'[11:-2]
 
-import cAccessControl
-rolesForPermissionOn=cAccessControl.rolesForPermissionOn
-PermissionRole=cAccessControl.PermissionRole
-imPermisionRole=cAccessControl.imPermissionRole
-_what_not_even_god_should_do= cAccessControl._what_not_even_god_should_do
+if 0: # cAccessControl is not working
+    import cAccessControl
+    rolesForPermissionOn=cAccessControl.rolesForPermissionOn
+    PermissionRole=cAccessControl.PermissionRole
+    imPermissionRole=cAccessControl.imPermissionRole
+    _what_not_even_god_should_do= cAccessControl._what_not_even_god_should_do
+else:
+    import pPermissionRole
+    from pPermissionRole import rolesForPermissionOn, PermissionRole
+    from pPermissionRole import imPermissionRole, _what_not_even_god_should_do
 
 ############################################################################## 
 # Test functions:


=== Zope/lib/python/AccessControl/ZopeSecurityPolicy.py 1.12 => 1.13 ===
 from SimpleObjectPolicies import _noroles
 
-import cAccessControl
-
-ZopeSecurityPolicy = cAccessControl.ZopeSecurityPolicy
-
+if 0: # cAccessControl is not working
+    import cAccessControl
 
+    ZopeSecurityPolicy = cAccessControl.ZopeSecurityPolicy
+else:
+    from pZopeSecurityPolicy import ZopeSecurityPolicy