[Commits] (morgen) Fixes a problem when reloading a parcel and changing a reference to None.

commits at osafoundation.org commits at osafoundation.org
Fri Aug 13 08:31:44 PDT 2004


Commit by: morgen
Modified files:
chandler/application/Parcel.py 1.25 1.26

Log message:
Fixes a problem when reloading a parcel and changing a reference to None.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/application/Parcel.py.diff?r1=text&tr1=1.25&r2=text&tr2=1.26

Index: chandler/application/Parcel.py
diff -u chandler/application/Parcel.py:1.25 chandler/application/Parcel.py:1.26
--- chandler/application/Parcel.py:1.25	Tue Aug  3 13:11:36 2004
+++ chandler/application/Parcel.py	Fri Aug 13 08:31:43 2004
@@ -1302,8 +1302,12 @@
                             item.addValue(attributeName, reference)
 
                     if reloading:
+                        if reference is None:
+                            displayPath = "None"
+                        else:
+                            displayPath = reference.itsPath
                         print "Reload: item %s, assigning %s = %s" % \
-                         (item.itsPath, attributeName, reference.itsPath)
+                         (item.itsPath, attributeName, displayPath)
 
                 # Record this assignment in the new set of assignments
                 new.addAssignment(assignmentTuple)



More information about the Commits mailing list