[Zope-Checkins] CVS: Zope/lib/python/AccessControl -
Owned.py:1.18.6.1 PermissionRole.py:1.16.6.1
ZopeSecurityPolicy.py:1.20.4.1
Fred Drake
cvs-admin at zope.org
Wed Nov 19 07:23:54 EST 2003
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv4329/AccessControl
Modified Files:
Tag: Zope-2_6-branch
Owned.py PermissionRole.py ZopeSecurityPolicy.py
Log Message:
Avoid nuissance SyntaxWarnings from the nightly test runs.
=== Zope/lib/python/AccessControl/Owned.py 1.18 => 1.18.6.1 ===
--- Zope/lib/python/AccessControl/Owned.py:1.18 Wed Aug 14 17:29:07 2002
+++ Zope/lib/python/AccessControl/Owned.py Wed Nov 19 07:23:23 2003
@@ -63,7 +63,7 @@
getOwner__roles__=()
def getOwner(self, info=0,
- aq_get=aq_get, None=None,
+ aq_get=aq_get,
UnownableOwner=UnownableOwner,
getSecurityManager=getSecurityManager,
):
@@ -90,7 +90,7 @@
changeOwnership__roles__=()
def changeOwnership(self, user, recursive=0,
- aq_get=aq_get, None=None,
+ aq_get=aq_get,
):
"""Change the ownership to the given user. If 'recursive' is
true then also take ownership of all sub-objects, otherwise
@@ -231,7 +231,7 @@
return attr
def ownerInfo(user,
- getattr=getattr, type=type, st=type(''), None=None):
+ getattr=getattr, type=type, st=type('')):
if user is None:
return None
uid=user.getId()
=== Zope/lib/python/AccessControl/PermissionRole.py 1.16 => 1.16.6.1 ===
--- Zope/lib/python/AccessControl/PermissionRole.py:1.16 Wed Aug 14 17:29:07 2002
+++ Zope/lib/python/AccessControl/PermissionRole.py Wed Nov 19 07:23:23 2003
@@ -66,7 +66,7 @@
self._p='_'+string.translate(name,name_trans)+"_Permission"
self._d=default
- def __of__(self, parent, None=None, getattr=getattr):
+ def __of__(self, parent, getattr=getattr):
r=imPermissionRole()
r._p=self._p
r._pa=parent
@@ -85,7 +85,7 @@
"""Implement permission-based roles
"""
- def __of__(self, parent,tt=type(()),st=type(''),getattr=getattr,None=None):
+ def __of__(self, parent,tt=type(()),st=type(''),getattr=getattr):
obj=parent
n=self._p
r=None
=== Zope/lib/python/AccessControl/ZopeSecurityPolicy.py 1.20 => 1.20.4.1 ===
--- Zope/lib/python/AccessControl/ZopeSecurityPolicy.py:1.20 Wed Aug 21 15:31:59 2002
+++ Zope/lib/python/AccessControl/ZopeSecurityPolicy.py Wed Nov 19 07:23:23 2003
@@ -75,7 +75,7 @@
self._authenticated=authenticated
def validate(self, accessed, container, name, value, context,
- roles=_noroles, None=None, type=type, IntType=type(0),
+ roles=_noroles, type=type, IntType=type(0),
DictType=type({}), getattr=getattr, _noroles=_noroles,
StringType=type(''),
Containers=SimpleObjectPolicies.Containers,
More information about the Zope-Checkins
mailing list