[Zope-Checkins] CVS: Zope/lib/python/AccessControl - Owned.py:1.13
Tres Seaver
tseaver@zope.com
Wed, 17 Oct 2001 16:01:02 -0400
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv30119/lib/python/AccessControl
Modified Files:
Owned.py
Log Message:
o Land unit test cleanup from branch.
o Known breakage as of 2001/10/17:
- TAL test suite is very broken (TAL is currently suppressed in
lib/python/.testinfo).
- AccessControl tests don't run if run first; lib/python/.testinfo
pushes them to the end of the queue, at which point they *do* run.
Global side effects suck!
- lib/python/BTrees/testBTreesUnicode.py: weird flakiness around
comparison of ASCII and Unicode strings; breaks in different
ways under Python 2.1 and 2.2.
- lib/python/Products/PageTemplates/tests: three tests break due
to security asserctions.
=== Zope/lib/python/AccessControl/Owned.py 1.12 => 1.13 ===
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