[Checkins] SVN: z3ext.ownership/trunk/src/z3ext/ownership/owner.py

Nikolay Kim fafhrd at datacom.kz
Thu May 22 06:27:10 EDT 2008


Log message for revision 86903:
  

Changed:
  U   z3ext.ownership/trunk/src/z3ext/ownership/owner.py

-=-
Modified: z3ext.ownership/trunk/src/z3ext/ownership/owner.py
===================================================================
--- z3ext.ownership/trunk/src/z3ext/ownership/owner.py	2008-05-22 08:08:22 UTC (rev 86902)
+++ z3ext.ownership/trunk/src/z3ext/ownership/owner.py	2008-05-22 10:27:09 UTC (rev 86903)
@@ -92,4 +92,6 @@
             interfaces.IInheritOwnership.providedBy(object):
         return
 
-    interfaces.IOwnership(removeSecurityProxy(object)).owner = getPrincipal()
+    principal = getPrincipal()
+    if principal is not None:
+        interfaces.IOwnership(removeSecurityProxy(object)).owner = principal



More information about the Checkins mailing list