[Commits] (jed) Removed old references to counterpartUUID.

commits at osafoundation.org commits at osafoundation.org
Tue May 25 17:47:27 PDT 2004


Commit by: jed
Modified files:
chandler/parcels/osaf/framework/blocks/ContainerBlocks.py 1.87 1.88

Log message:
Removed old references to counterpartUUID.

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ContainerBlocks.py.diff?r1=text&tr1=1.87&r2=text&tr2=1.88

Index: chandler/parcels/osaf/framework/blocks/ContainerBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.87 chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.88
--- chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.87	Tue May 25 10:02:57 2004
+++ chandler/parcels/osaf/framework/blocks/ContainerBlocks.py	Tue May 25 17:46:57 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.87 $"
-__date__ = "$Date: 2004/05/25 17:02:57 $"
+__version__ = "$Revision: 1.88 $"
+__date__ = "$Date: 2004/05/26 00:46:57 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -276,9 +276,9 @@
         event.Skip()
           
     def wxSynchronizeWidget(self):
-        counterpart = Globals.repository.find (self.blockUUID)
-        assert(len(counterpart.childrenBlocks) >= 1), "Tabbed containers cannot be empty"
-        assert(len(counterpart.childrenBlocks) == len(counterpart.tabNames)), "Improper number of tabs"
+        block = Globals.repository.find (self.blockUUID)
+        assert(len(block.childrenBlocks) >= 1), "Tabbed containers cannot be empty"
+        assert(len(block.childrenBlocks) == len(block.tabNames)), "Improper number of tabs"
         self.Freeze()
         for pageNum in range (self.GetPageCount()):
             page = self.GetPage(0)
@@ -288,14 +288,14 @@
             else:
                 self.RemovePage(0)
         index = 0
-        for child in counterpart.childrenBlocks:
+        for child in block.childrenBlocks:
             window = Globals.association[child.itsUUID]
-            self.AddPage(window, counterpart.tabNames[index])
+            self.AddPage(window, block.tabNames[index])
             if index == self.selectedTab:
-                counterpart.RegisterEvents(child)
+                block.RegisterEvents(child)
             else:
                 try:
-                    counterpart.UnregisterEvents(child)
+                    block.UnregisterEvents(child)
                 except NotSubscribed:
                     pass
             index += 1
@@ -303,7 +303,7 @@
         self.Thaw()
 
     def __del__(self):
-        del Globals.association [self.counterpartUUID]
+        del Globals.association [self.blockUUID]
         
 
 class TabbedContainer(RectangularChild):



More information about the Commits mailing list