[Commits] (john) Fixed problem caused by repository first level
items now implement itsParent
commits at osafoundation.org
commits at osafoundation.org
Tue Apr 20 17:26:56 PDT 2004
Commit by: john
Modified files:
osaf/chandler/Chandler/parcels/OSAF/views/repositoryviewer/Repository.py 1.9 1.10
osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py 1.21 1.22
Log message:
Fixed problem caused by repository first level items now implement itsParent
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/views/repositoryviewer/Repository.py.diff?r1=text&tr1=1.9&r2=text&tr2=1.10
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py.diff?r1=text&tr1=1.21&r2=text&tr2=1.22
Index: osaf/chandler/Chandler/parcels/OSAF/views/repositoryviewer/Repository.py
diff -u osaf/chandler/Chandler/parcels/OSAF/views/repositoryviewer/Repository.py:1.9 osaf/chandler/Chandler/parcels/OSAF/views/repositoryviewer/Repository.py:1.10
--- osaf/chandler/Chandler/parcels/OSAF/views/repositoryviewer/Repository.py:1.9 Tue Apr 20 12:35:45 2004
+++ osaf/chandler/Chandler/parcels/OSAF/views/repositoryviewer/Repository.py Tue Apr 20 17:26:24 2004
@@ -1,9 +1,9 @@
""" Classes used by the repository view
"""
-__version__ = "$Revision: 1.9 $"
-__date__ = "$Date: 2004/04/20 19:35:45 $"
-__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
+__version__ = "$Revision: 1.10 $"
+__date__ = "$Date: 2004/04/21 00:26:24 $"
+__copyright__ = "Copyright (c) 200 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
import application.Globals as Globals
@@ -55,7 +55,12 @@
parentUUID = notification.data['parent']
except KeyError:
item = Globals.repository.find (notification.data['uuid'])
- parentUUID = item.itsParent.itsUUID
+ parent = item.itsParent
+ if not parent:
+ return
+
+ parentUUID = parent.itsUUID
+
counterpart = Globals.repository.find (self.counterpartUUID)
if counterpart.openedContainers.has_key (parentUUID):
self.scheduleUpdate = True
Index: osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py
diff -u osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.21 osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.22
--- osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.21 Mon Apr 19 08:57:00 2004
+++ osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py Tue Apr 20 17:26:25 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.21 $"
-__date__ = "$Date: 2004/04/19 15:57:00 $"
+__version__ = "$Revision: 1.22 $"
+__date__ = "$Date: 2004/04/21 00:26:25 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -23,11 +23,10 @@
"""
Comment in this code to see which events are dispatched -- DJA
- try:
- updateUI = notification.data['UpdateUI']
- except KeyError:
- print "Calling %s" % methodName
+
+ print "Calling %s" % methodName
"""
+
member (notification)
return True
More information about the Commits
mailing list