[Zope-Checkins] CVS: Zope/lib/python/AccessControl - Owned.py:1.12.28.1

Tres Seaver tseaver@zope.com
Mon, 15 Oct 2001 19:07:37 -0400


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

Modified Files:
      Tag: tseaver-utxfixup-branch
	Owned.py 
Log Message:


  - Don't assume that a user object is obtainable when adding objects
    (the behavior was optional in both cases, anyway).


=== Zope/lib/python/AccessControl/Owned.py 1.12 => 1.12.28.1 ===
 def ownerInfo(user,
               getattr=getattr, type=type, st=type(''), None=None):
+    if user is None:
+        return None
     uid=user.getId()
     if uid is None: return uid
     db=user.aq_inner.aq_parent