[Commits] (john) * Fixes a repository bug I found (Andy wrote the
fix)
commits at osafoundation.org
commits at osafoundation.org
Mon Apr 4 11:59:28 PDT 2005
Commit by: john
Modified files:
chandler/repository/item/Values.py 1.43 1.44
Log message:
* Fixes a repository bug I found (Andy wrote the fix)
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/repository/item/Values.py.diff?r1=text&tr1=1.43&r2=text&tr2=1.44
Index: chandler/repository/item/Values.py
diff -u chandler/repository/item/Values.py:1.43 chandler/repository/item/Values.py:1.44
--- chandler/repository/item/Values.py:1.43 Mon Mar 28 15:33:17 2005
+++ chandler/repository/item/Values.py Mon Apr 4 11:59:27 2005
@@ -1,6 +1,6 @@
-__revision__ = "$Revision: 1.43 $"
-__date__ = "$Date: 2005/03/28 23:33:17 $"
+__revision__ = "$Revision: 1.44 $"
+__date__ = "$Date: 2005/04/04 18:59:27 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -66,10 +66,12 @@
item.getAttributeAspect(name, 'copyPolicy',
default='copy'))
other = item.find(value.itsUUID)
- copyOther = copyFn(item, other, policy)
-
- if copyOther is not item.Nil:
- self[name] = SingleRef(copyOther.itsUUID)
+ if other is None:
+ self.name = value
+ else:
+ copyOther = copyFn(item, other, policy)
+ if copyOther is not item.Nil:
+ self[name] = SingleRef(copyOther.itsUUID)
else:
self[name] = value
More information about the Commits
mailing list