changeset 10:d2cbc0278b30

bug fix: A except is raised when a user splits a pane, closes one of the new panes and splits again.
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Fri, 19 Nov 2010 19:17:11 +0100
parents 229986217a3d
children fe9c55f86698
files Gtk/gui.py
diffstat 1 files changed, 211 insertions(+), 209 deletions(-) [+]
line wrap: on
line diff
--- a/Gtk/gui.py	Wed Nov 17 23:59:48 2010 +0100
+++ b/Gtk/gui.py	Fri Nov 19 19:17:11 2010 +0100
@@ -864,7 +864,7 @@
         
         Sends a message to a pane
         """
-        if not pane.path == pane_path:
+        if not pane.pane_path == pane_path:
             pane.runMessage(message, pane_path, arg)
 
     def close(self):
@@ -925,7 +925,7 @@
         """
         _item = self.getItem(pane_path)
         _parent = self.getItem(pane_path[:-1])
-        _item.path =  pane_path + (0,)
+        _item.pane_path =  pane_path + (0,)
         _item_clone0 = _item.getClone(pane_path + (0,))
         _item_clone1 = _item.getClone(pane_path + (1,))
         _paned = Paned(orientation, pane_path, _item_clone0, _item_clone1)
@@ -1157,7 +1157,7 @@
     Description:
         It creates a view to show the budget info
     Constructor:
-        View(view_type, budget, wr_page, path, active_path_record)
+        View(view_type, budget, wr_page, pane_path, active_path_record)
             view_type: the object type to show
                 * DecompositionList
                 * Description
@@ -1167,13 +1167,13 @@
                 * CompanyView
             budget: the budget to show
             wr_page: weak reference to the page where the view must be showed
-            path: the position or path of the view in the page notebook
+            pane_path: the position or path of the view in the page notebook
             active_path_record: the record path that must be showed
     Ancestry:
     +-- object
       +-- View
     Atributes:
-        path: Read-Write. The tuple that identifies the view in the main 
+        pane_path: Read-Write. The tuple that identifies the view in the main 
             notebook page
         widget: Read. the main gtk widget to show in a view object,
             a gtk.VBox object
@@ -1185,8 +1185,9 @@
         clear
     """
 
-    def __init__(self, view_type, budget, wr_page, path, active_path_record):
-        """__init__(view_type, budget, wr_page, path, active_path_record)
+    def __init__(self, view_type, budget, wr_page, pane_path,
+                 active_path_record):
+        """__init__(view_type, budget, wr_page, pane_path, active_path_record)
         view_type: the object type to show
             * DecompositionList
             * Description
@@ -1196,7 +1197,7 @@
             * CompanyView
         budget: the budget to show
         wr_page: weak reference to the page where the view must be showed
-        path: the position or path of the view in the page notebook
+        pane_path: the position or path of the view in the page notebook
         active_path_record: the record path that must be showed
         
         self.__active_path_record: the record path that must be showed
@@ -1210,7 +1211,7 @@
         self.__wr_page: weak reference to the page where the view must be
             showed
         self.__budget: the budget to show
-        self.__path: the position or path of the view in the page notebook
+        self.__pane_path: the position or path of the view in the page notebook
         self.__connected: boolean value, True means that the View object sends
             and receives signals from/to others views
         self.__widget: main widget. a gtk.VBox
@@ -1230,7 +1231,7 @@
         self.__view_type = view_type
         self.__wr_page = wr_page
         self.__budget = budget
-        self.__path = path
+        self.__pane_path = pane_path
         self.__connected = True
         # view_type liststore
         _liststore = gtk.ListStore(str)
@@ -1248,38 +1249,38 @@
         _hbox = gtk.HBox()
         if view_type == "DecompositionList":
             self.__view = DecompositionList(budget, weakref.ref(self),
-                          path, active_path_record)
+                          pane_path, active_path_record)
             _combobox.set_active(0)
             _view_icon = gtk.Image()
             _view_icon.set_from_file(globalVars.getAppPath(
                 "DECOMPOSITION-ICON"))
         elif view_type == "RecordDescription":
             self.__view = Description(budget, weakref.ref(self),
-                          path, active_path_record)
+                          pane_path, active_path_record)
             _combobox.set_active(1)
             _view_icon = gtk.Image()
             _view_icon.set_from_file(globalVars.getAppPath(
                 "DESCRIPTION-ICON"))
         elif view_type == "Measure":
             self.__view = Measure(budget, weakref.ref(self),
-                          path, active_path_record)
+                          pane_path, active_path_record)
             _combobox.set_active(2)
             _view_icon = gtk.Image()
             _view_icon.set_from_file(globalVars.getAppPath("MEASURE-ICON"))
         elif view_type == "Sheet of Conditions":
             self.__view = Sheet(budget, weakref.ref(self),
-                          path, active_path_record)
+                          pane_path, active_path_record)
             _combobox.set_active(3)
             _view_icon = gtk.Image()
             _view_icon.set_from_file(globalVars.getAppPath("SHEET-ICON"))
         elif view_type == "FileView":
             self.__view = FileView(budget, weakref.ref(self),
-                          path, active_path_record)
+                          pane_path, active_path_record)
             _combobox.set_active(4)
             _view_icon = gtk.Image()
             _view_icon.set_from_file(globalVars.getAppPath("SHEET-ICON"))
         elif view_type == "CompanyView":
-            self.__view = CompanyView(budget, weakref.ref(self), path,
+            self.__view = CompanyView(budget, weakref.ref(self), pane_path,
                           active_path_record)
             _combobox.set_active(5)
             _view_icon = gtk.Image()
@@ -1324,8 +1325,8 @@
         _hbox.show()
         self.__widget.show()
 
-    def getItem(self, path):
-        """getItem(path)
+    def getItem(self, pane_path):
+        """getItem(pane_path)
         
         Return itself.
         """
@@ -1337,7 +1338,7 @@
         Method connected to the "clicked" signal of the _close_button widget
         Send the "autoclose" message to the page to close this view
         """
-        self.propagateMessageFrom("autoclose", self.__path)
+        self.propagateMessageFrom("autoclose", self.__pane_path)
 
     def _change_combo(self, combobox):
         """_change_combo(combobox)
@@ -1348,7 +1349,7 @@
         _index = combobox.get_active()
         _budget = self.__view.budget
         _wr_page = self.__view.page
-        _path = self.__view.path
+        _pane_path = self.__view.pane_path
         _path_record = self.__view.active_path_record
         _hbox = self.__widget.get_children()[0]
         _combobox = _hbox.get_children()[1]
@@ -1366,34 +1367,34 @@
         _hbox.destroy()
         _view_icon = gtk.Image()
         if _index == 0:
-            self.__view = DecompositionList(_budget, _wr_page, _path,
+            self.__view = DecompositionList(_budget, _wr_page, _pane_path,
                           _path_record)
                         
             _view_icon.set_from_file(globalVars.getAppPath(
                 "DECOMPOSITION-ICON"))
             self.__view_type = "DecompositionList"
         elif _index == 1:
-            self.__view = Description(_budget, _wr_page, _path,
+            self.__view = Description(_budget, _wr_page, _pane_path,
                          _path_record)
             _view_icon.set_from_file(globalVars.getAppPath("DESCRIPTION-ICON"))
             self.__view_type = "RecordDescription"
         elif _index == 2:
-            self.__view = Measure(_budget, _wr_page, _path,
+            self.__view = Measure(_budget, _wr_page, _pane_path,
                          _path_record)
             _view_icon.set_from_file(globalVars.getAppPath("MEASURE-ICON"))
             self.__view_type = "Measure"
         elif _index == 3:
-            self.__view = Sheet(_budget, _wr_page, _path,
+            self.__view = Sheet(_budget, _wr_page, _pane_path,
                          _path_record)
             _view_icon.set_from_file(globalVars.getAppPath("SHEET-ICON"))
             self.__view_type = "Sheet of Conditions"
         elif _index == 4:
-            self.__view = FileView(_budget, _wr_page, _path,
+            self.__view = FileView(_budget, _wr_page, _pane_path,
                          _path_record)
             _view_icon.set_from_file(globalVars.getAppPath("SHEET-ICON"))
             self.__view_type = "FileView"
         elif _index == 5:
-            self.__view = CompanyView(_budget, _wr_page, _path,
+            self.__view = CompanyView(_budget, _wr_page, _pane_path,
                           _path_record)
             _view_icon.set_from_file(globalVars.getAppPath("SHEET-ICON"))
             self.__view_type = "CompanyView"
@@ -1440,7 +1441,7 @@
         It sends the "split" message to the page to splits the view in the
         specified orientation
         """
-        self.propagateMessageFrom( "split " + orientation, self.__path)
+        self.propagateMessageFrom( "split " + orientation, self.__pane_path)
 
     def _connected(self, widget):
         """_connected(widget)
@@ -1463,32 +1464,32 @@
             self.__connected_button.set_icon_widget(_icon)
             self.__connected = True
 
-    def propagateMessageFrom(self, message, path, arg=None):
-        """propagateMessageFrom(message, path, arg=None)
+    def propagateMessageFrom(self, message, pane_path, arg=None):
+        """propagateMessageFrom(message, pane_path, arg=None)
         
         message: string message
-        path: tuple that represents the pane path which emits the message
+        pane_path: tuple that represents the pane path which emits the message
         arg: arguments for the message
         The panes are connectted to this method to send messages to other panes
         """
         if self.__connected or message == "autoclose" or \
            message == "split h" or message == "split v":
-            self.__wr_page().propagateMessageFrom(message, path, arg)
-
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, path, arg=None)
+            self.__wr_page().propagateMessageFrom(message, pane_path, arg)
+
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: tuple whit two items:
             0: record path in the budget
             1: record code
         This method receives a message and executes its corresponding action
         """
         if self.__connected:
-            self.__view.runMessage(message, path, arg)
+            self.__view.runMessage(message, pane_path, arg)
             if message == "change_active":
                 if self.__budget.hasPath(arg):
                     _path_record = arg
@@ -1501,30 +1502,30 @@
         """
         return self.__widget
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         return the tuple that identifies the pane in the notebook page
         """
-        return self.__view.path
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__view.pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         set the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
-        self.__view.path = path
-
-    def getClone(self, new_path):
-        """getClone(new_path)
-        
-        new_path: the path that identifies the clone view in the page
+        self.__pane_path = pane_path
+        self.__view.pane_path = pane_path
+
+    def getClone(self, new_pane_path):
+        """getClone(new_pane_path)
+        
+        new_pane_path: the path that identifies the clone view in the page
         
         return a clone of itself
         """
         return View(self.__view_type, self.__budget, self.__wr_page,
-                       new_path, self.__active_path_record)
+                       new_pane_path, self.__active_path_record)
 
     def clear(self):
         """clear()
@@ -1533,13 +1534,13 @@
         """
         del self.__wr_page
         del self.__budget
-        del self.__path
+        del self.__pane_path
         del self.__widget
         del self.__view
         del self.__connected
         del self.__connected_button
 
-    path = property(_getPath, _setPath, None,
+    pane_path = property(_getPanePath, _setPanePath, None,
         "path that identifies the item in the notebook page")
     widget = property(_getWidget, None, None, "View widget")
 
@@ -1560,7 +1561,7 @@
       +-- Paned
     Atributes:
         widget: Read. Pane widget("gtk.VPaned" or "gtk.HPaned" object)
-        path: Read-Write. The paned path in the page
+        pane_path: Read-Write. The paned path in the page
     Methods:
         getClone
         getItem
@@ -1573,11 +1574,11 @@
     # TODO:          0.0 no space for widget1
     # TODO:          1.0 all the space for widget1
 
-    def __init__(self, orientation, path, item1, item2):
-        """__init__(oritentation, path, item1, item2)
+    def __init__(self, orientation, pane_path, item1, item2):
+        """__init__(oritentation, pane_path, item1, item2)
         
         orientation: The orientation of de gtk.Paned, can be "v" or "h"
-        path: the paned path in the page
+        pane_path: the paned path in the page
         item1: the top or left pane object
         item2: the bottom or right pane object
         
@@ -1585,7 +1586,7 @@
         self.__widget: Main widget, a gtk.VPaned o gtk.HPaned
         self.__items: list of items showed in the paned, its can be View or
             Paned instances
-        self.__path: the paned path in the page
+        self.__pane_path: the paned path in the page
         
         Creates and shows a new gtk.Paned
         """
@@ -1603,7 +1604,7 @@
         self.__widget.pack2(item2.widget,True,False)
         self.__widget.show()
         self.__items = [item1, item2]
-        self.__path = path
+        self.__pane_path = pane_path
 
     def __getitem__(self, item):
         """__getitem__(item)
@@ -1613,58 +1614,58 @@
         """
         return self.__items[item]
 
-    def getClone(self, new_path):
-        """getClone(new_path)
+    def getClone(self, new_pane_path):
+        """getClone(new_pane_path)
         
         Return a clone Paned instance with the path new_path
         """
-        return Paned(self.__orientation, new_path,
-                     self.__items[0].getClone(new_path + (0,)),
-                     self.__items[1].getClone(new_path + (1,)))
-
-    def getItem(self,path):
-        """getItem(path)
+        return Paned(self.__orientation, new_pane_path,
+                     self.__items[0].getClone(new_pane_path + (0,)),
+                     self.__items[1].getClone(new_pane_path + (1,)))
+
+    def getItem(self,pane_path):
+        """getItem(pane_path)
         
         Return the item whith the specified path.
         """
-        _item = self.__items[path[0]]
-        if len(path) == 1:
+        _item = self.__items[pane_path[0]]
+        if len(pane_path) == 1:
             return _item
         else:
-            return _item.getItem(path[1:])
-        
-    def setItem(self, path, item_list):
-        """setItem(path, item_list)
+            return _item.getItem(pane_path[1:])
+        
+    def setItem(self, pane_path, item_list):
+        """setItem(pane_path, item_list)
         
         Sets the first item in the item_list whith the especified path and
         remove the old item in this position.
         """
         item = item_list[0]
-        if path == 0 or path == 1:
-            _old_item = self.__items[path]
+        if pane_path == 0 or pane_path == 1:
+            _old_item = self.__items[pane_path]
             self.__widget.remove(_old_item.widget)
-            self.__items[path] = item
-            if path == 0:
+            self.__items[pane_path] = item
+            if pane_path == 0:
                 self.__widget.pack1(item.widget,True,False)
             else:
                 self.__widget.pack2(item.widget,True,False)
             return True
         return False
 
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, page_path, arg=None)
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        page_path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: arguments
         
         This method receives a message and send this to the items of the paned
         """
         for _item in self.__items:
-            if not _item.path == path:
-                _item.runMessage(message, path, arg)
+            if not _item.pane_path == pane_path:
+                _item.runMessage(message, pane_path, arg)
 
     def _getWidget(self):
         """_getWidget()
@@ -1673,21 +1674,21 @@
         """
         return self.__widget
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         Return de Paned path in the notebook page
         """
-        return self.__path
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         sets the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
-        self.__items[0].path = path + (0,)
-        self.__items[1].path = path + (1,)
+        self.__pane_path = pane_path
+        self.__items[0].pane_path = pane_path + (0,)
+        self.__items[1].pane_path = pane_path + (1,)
 
     def clear(self):
         """clear()
@@ -1697,10 +1698,11 @@
         del self.__widget
         del self.__orientation
         del self.__items
-        del self.__path
+        del self.__pane_path
 
     widget = property(_getWidget, None, None, "gtk.Paned widget")
-    path = property(_getPath, _setPath, None, "Pane path in the notebook page")
+    pane_path = property(_getPanePath, _setPanePath, None,
+        "Pane path in the notebook page")
 
 
 class TreeView(object):
@@ -1897,10 +1899,10 @@
     Description:
         Class to show a budget Decomposition List
     Constructor:
-        DecompositionList(budget, page, path, path_record=(0,))
+        DecompositionList(budget, page, pane_path, path_record=(0,))
         budget: budget showed ("base.Budget" object)
         page: weak reference from Page instance which creates this class
-        path: tuple that represents the view path in the Page
+        pane_path: tuple that represents the view path in the Page
         path_record: the record path that must be showed
         Returns the newly created DecompositionList instance
     Ancestry:
@@ -1910,24 +1912,24 @@
     Atributes:
         budget: Read. Budget to show, base.obra object.
         widget: Read. Window that contains the table, gtk.ScrolledWindow
-        path: Read-Write. Pane page identifier
+        pane_path: Read-Write. Pane page identifier
         page: Read-Write. weak ref from Page object which creates this class
         active_path_record: Read. Active path record
     Methods:
         runMessage
     """
 
-    def __init__(self, budget, page, path, path_record=(0,)):
-        """__init__(budget, page, path, path_record=(0,))
+    def __init__(self, budget, page, pane_path, path_record=(0,)):
+        """__init__(budget, page, pane_path, path_record=(0,))
         
         budget: budget showed ("base.Budget" object)
         page: weak reference from Page instance which creates this class
-        path: tuple that represents the path of the List in the Page
+        pane_path: tuple that represents the path of the List in the Page
         path_record: the record path that must be showed
         
         self.__budget: budget showed ("base.Budget" object)
         self.__page: weak reference from Page instance which creates this class
-        self.__path: tuple that represents the path of the List in the Page
+        self.__pane_path: tuple that represents the path of the List in the Page
         self.__liststore: list model which store the list data
             (gtk.ListStore object)
         self.__active_path_record: the record path that must be showed
@@ -1972,7 +1974,7 @@
             raise ValueError, _("Argument must be a Budget object")
         self.__budget = budget
         self.__page = page
-        self.__path = path
+        self.__pane_path = pane_path
         # ListStore
         self.__liststore = gtk.ListStore(object
             #, int, int, str, str, str, str, str,str
@@ -2381,7 +2383,7 @@
             self._setListstoreValues(self.__active_path_record)
             arg = ( _path_record )
             _page = self.__page()
-            _page.propagateMessageFrom("change_active", self.__path, arg)
+            _page.propagateMessageFrom("change_active", self.__pane_path, arg)
             self.__treeview.set_cursor(_parent, self.__cursor[1])
             self.__cursor = self.__treeview.get_cursor()
 
@@ -2428,16 +2430,16 @@
                 self.__treeview.set_cursor((0,))
                 _arg = ( _path_record )
                 _page = self.__page()
-                _page.propagateMessageFrom("change_active", self.__path,
+                _page.propagateMessageFrom("change_active", self.__pane_path,
                                        _arg )
 
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, path, arg=None)
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: tuple whit two items:
             0: record path in the budget
             1: record code
@@ -2465,19 +2467,19 @@
         """
         return self.__scrolled_window
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         return the tuple that identifies the pane in the notebook page
         """
-        return self.__path
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         sets the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
+        self.__pane_path = pane_path
 
     def _getPage(self):
         """_getPage()
@@ -2509,7 +2511,7 @@
 
     widget = property(_getWidget, None, None,
         "Pane configuration list")
-    path = property(_getPath, _setPath, None,
+    pane_path = property(_getPanePath, _setPanePath, None,
         "path that identifie the item in the page notebook")
     page = property(_getPage, _setPage, None,
         "weak reference from Page instance which creates this class")
@@ -2525,10 +2527,10 @@
     Description:
         Class to show a Measure List
     Constructor:
-        Measure(budget, page, path, path_record=(0,)
+        Measure(budget, page, pane_path, path_record=(0,)
         budget: budget showed ("base.Budget" object)
         page: weak reference from Page instance which creates this class
-        path: tuple that represents the path of the List in the Page
+        pane_path: tuple that represents the path of the List in the Page
         path_record: path of the active record in the budget
     Ancestry:
     +-- object
@@ -2537,7 +2539,7 @@
     Atributes:
         budget: Read. Budget to show, base.obra instance.
         widget: Read. Window that contains the table, gtk.ScrolledWindow
-        path: Read-Write. Pane page identifier
+        pane_path: Read-Write. Pane page identifier
         page: Read-Write. weak reference from Page instance which creates
               this class
         active_path_record: Read. Path of the active record in the budget
@@ -2545,17 +2547,17 @@
         runMessage
     """
 
-    def __init__(self, budget, page, path, path_record=(0,)):
-        """__init__(budget, page, path, path_record=(0,))
+    def __init__(self, budget, page, pane_path, path_record=(0,)):
+        """__init__(budget, page, pane_path, path_record=(0,))
         
         budget: budget: budget showed ("base.Budget" object)
         page: weak reference from Page instance which creates this class
-        path: tuple that represents the path of the List in the Page
+        pane_path: tuple that represents the path of the List in the Page
         path_record: path of the active record in the budget
         
         self.__budget: budget showed ("base.Budget" object)
         self.__page: weak reference from Page instance which creates this class
-        self.__path: tuple that represents the path of the List in the Page
+        self.__pane_path: tuple that represents the path of the List in the Page
         self.__active_path_record: path of the active record in the budget
         self.__liststore: list model which store the list data
             (gtk.ListStore object)
@@ -2599,7 +2601,7 @@
             raise ValueError, _("Argument must be a Budget object")
         self.__budget = budget
         self.__page = page
-        self.__path = path
+        self.__pane_path = pane_path
         if not isinstance(path_record, tuple):
             print _("Record path must be a tuple")
             path_record = (0,)
@@ -2885,13 +2887,13 @@
             return True
         return False
 
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, path, arg=None)
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: tuple whit two items:
             0: record path in the budget
             1: record code
@@ -3057,19 +3059,19 @@
         """
         return self.__scrolled_window
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         return the tuple that identifies the pane in the notebook page
         """
-        return self.__path
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         sets the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
+        self.__pane_path = pane_path
 
     def _getPage(self):
         """_getPage()
@@ -3101,7 +3103,7 @@
 
     widget = property(_getWidget, None, None,
         "Pane configuration list")
-    path = property(_getPath, _setPath, None,
+    pane_path = property(_getPanePath, _setPanePath, None,
         "Path that identifies the item in the page notebook")
     page = property(_getPage, _setPage, None,
         "Weak reference from Page instance which creates this class")
@@ -3125,7 +3127,7 @@
       +-- Description
     Atributes:
         widget: the main widget (gtk.ScrolledWindow object)
-        path: the tuple that identifies the pane in the notebook page
+        pane_path: the tuple that identifies the pane in the notebook page
         budget: The budget (base.obra objetc)
         active_path_record: The active path record
     Methods:
@@ -3133,17 +3135,17 @@
     """
     # TODO: make standar: "DecompositonList and Description"
 
-    def __init__(self, budget, page, path, path_record=(0,)):
-        """__init__(budget, page, path, path_record=(0,))
+    def __init__(self, budget, page, pane_path, path_record=(0,)):
+        """__init__(budget, page, pane_path, path_record=(0,))
         
         budget: the budget (base.obra object)
         page: weak reference from Page instance which creates this class
-        path: the path position of the description in the page
+        pane_path: the path position of the description in the page
         path_record: the path of the active record
         
         self.__budget: the budget (base.obra object)
         self.__page: weak reference from Page instance which creates this class
-        self.__path: the path position of the description in the page
+        self.__pane_path: the path position of the description in the page
         self.__active_path_recordthe path of the active record
 
         self.__textbuffer: The textbuffer of the textview that contain
@@ -3156,7 +3158,7 @@
         """
         self.__budget = budget
         self.__page = page
-        self.__path = path
+        self.__pane_path = pane_path
         self.__active_path_record = path_record
         _budget = budget
         _text = _budget.getRecord(self.__budget.getCode(
@@ -3200,13 +3202,13 @@
         _text = _budget.getRecord(_code).text
         self.__textbuffer.set_text(_text)
 
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, path, arg=None)
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: tuple whit two items:
             0: record path in the budget
             1: record code
@@ -3225,7 +3227,7 @@
         Delete all instance atributes
         """
         del self.__widget
-        del self.__path
+        del self.__pane_path
         del self.__budget
         del self.__active_code
         del self.__textbuffer
@@ -3238,19 +3240,19 @@
         """
         return self.__widget
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         return the tuple that identifies the pane in the notebook page
         """
-        return self.__path
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         sets the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
+        self.__pane_path = pane_path
 
     def _getPage(self):
         """_getPage()
@@ -3280,7 +3282,7 @@
         """
         return self.__active_path_record
 
-    path = property(_getPath, _setPath, None,
+    pane_path = property(_getPanePath, _setPanePath, None,
         "Path that identifie the item in the page notebook")
     widget = property(_getWidget, None, None,
         "The main widget (gtk.ScrolledWindow)")
@@ -3306,7 +3308,7 @@
       +-- Sheet
     Atributes:
         widget: the main widget (gtk.VBox() object)
-        path: the tuple that identifies the pane in the notebook page
+        pane_path: the tuple that identifies the pane in the notebook page
         page: weak reference from Page instance which creates this class
         budget: The budget (base.obra objetc)
         active_path_record: The active path record
@@ -3314,17 +3316,17 @@
         runMessage
     """
 
-    def __init__(self, budget, page, path, path_record=(0,)):
-        """__init__(budget, page, path, path_record=(0,))
+    def __init__(self, budget, page, pane_path, path_record=(0,)):
+        """__init__(budget, page, pane_path, path_record=(0,))
         
         budget: the budget (base.obra object)
         page: weak reference from Page instance which creates this class
-        path: the path position of the description in the page
+        pane_path: the path position of the description in the page
         path_record: the path of the active record
         
         self.__budget: the budget (base.obra object)
         self.__page: weak reference from Page instance which creates this class
-        self.__path: the path position of the description in the page
+        self.__pane_path: the path position of the description in the page
         self.__active_path_record: the path of the active record
         self.__label: The gtk.label with the title of the pane
         self.__field_liststore: the field liststore
@@ -3342,7 +3344,7 @@
         """
         self.__budget = budget
         self.__page = page
-        self.__path = path
+        self.__pane_path = pane_path
         self.__active_path_record = path_record
         _budget = budget
         _main_box = gtk.VBox()
@@ -3537,13 +3539,13 @@
                      "record $1"), (_code,)))
         self._setFields()
 
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, path, arg=None)
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: tuple whit two items:
             0: record path in the budget
             1: record code
@@ -3563,7 +3565,7 @@
         """
         del self.__page
         del self.__widget
-        del self.__path
+        del self.__pane_path
         del self.__budget
         del self.__active_code
         del self.__textbuffer
@@ -3584,19 +3586,19 @@
         """
         return self.__widget
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         return the tuple that identifies the pane in the notebook page
         """
-        return self.__page
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         sets the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
+        self.__pane_path = pane_path
 
     def _getPage(self):
         """_getPage()
@@ -3626,7 +3628,7 @@
         """
         return self.__active_path_record
 
-    path = property(_getPath, _setPath, None,
+    pane_path = property(_getPanePath, _setPanePath, None,
         "Path that identifie the item in the page notebook")
     widget = property(_getWidget, None, None,
                       "Lista de configuracion de vistas")
@@ -3644,34 +3646,34 @@
     Description:
         Class to show the file icons of a record in a pane
     Constructor:
-        Description(budget, page, path, path_record=(0,))
+        Description(budget, page, pane_path, path_record=(0,))
         budget: the budget (base.obra object)
         page: weak reference from Page instance which creates this class
-        path: the path position of the description in the page
+        pane_path: the path position of the description in the page
         path_record: the path of the active record
     Ancestry:
     +-- object
       +-- FileView
     Atributes:
         widget: the main widget (gtk.ScrolledWindow object)
-        "path": the tuple that identifies the pane in the notebook page
-        "budget": The budget (base.obra objetc)
-        "active_code": The active code of the record
+        pane_path: the tuple that identifies the pane in the notebook page
+        budget: The budget (base.obra objetc)
+        active_code: The active code of the record
     Methods:
         runMessage
     """
 
-    def __init__(self, budget, page, path, path_record=(0,)):
-        """__init__(budget, page, path, path_record=(0,))
+    def __init__(self, budget, page, pane_path, path_record=(0,)):
+        """__init__(budget, page, pane_path, path_record=(0,))
         
         budget: the budget (base.obra object)
         page: weak reference from Page instance which creates this class
-        path: the path position of the description in the page
+        pane_path: the path position of the description in the page
         path_record: the path of the active record
         
         self.__budget: the budget (base.obra object)
         self.__page: weak reference from Page instance which creates this class
-        self.__path: the path position of the description in the page
+        self.__pane_path: the path position of the description in the page
         self.__active_path_record: the path of the active record
         self.__active_code: the code of the active record
         self.__icon_box: the box that contains the icon
@@ -3682,7 +3684,7 @@
         """
         self.__budget = budget
         self.__page = page
-        self.__path = path
+        self.__pane_path = pane_path
         self.__active_path_record = path_record
         self.__active_code = budget.getCode(self.__active_path_record)
         _budget = budget
@@ -3790,13 +3792,13 @@
         self.__icon_box.show()
         self.__widget.add_with_viewport(self.__icon_box)
 
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, path, arg=None)
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: tuple whit two items:
             0: record path in the budget
             1: record code
@@ -3815,7 +3817,7 @@
         Delete all instance atributes
         """
         del self.__widget
-        del self.__path
+        del self.__pane_path
         del self.__budget
         del self.__active_code
 
@@ -3826,19 +3828,19 @@
         """
         return self.__widget
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         return the tuple that identifies the pane in the notebook page
         """
-        return self.__path
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         sets the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
+        self.__pane_path = pane_path
 
     def _getPage(self):
         """_getPage()
@@ -3868,7 +3870,7 @@
         """
         return self.__active_path_record
 
-    path = property(_getPath, _setPath, None,
+    pane_path = property(_getPanePath, _setPanePath, None,
         "Path that identifie the item in the page notebook")
     widget = property(_getWidget, None, None,
         "The main widget (gtk.ScrolledWindow)")
@@ -3886,10 +3888,10 @@
     Description:
         Class to show the company records of a budget
     Constructor:
-        CompanyView(budget, page, path, path_record=(0,))
+        CompanyView(budget, page, pane_path, path_record=(0,))
         budget: budget showed ("base.Budget" object)
         page: weak reference from Page instance which creates this class
-        path: tuple that represents the path of the List in the Page
+        pane_path: tuple that represents the path of the List in the Page
         path_record: path of the active record in the budget
     Ancestry:
     +-- object
@@ -3897,25 +3899,25 @@
     Atributes:
         active_path_record: Read. Path of the active record in the budget
         widget: Read. Window that contains the main widget, a gtk.HPaned
-        path: Read-Write. Pane page identifier
+        pane_path: Read-Write. Pane page identifier
         page: Read-Write. weak reference from Page instance which creates this class
         budget: Read. Budget to show, base.budget instance.
     Methods:
         runMessage
     """
 
-    def __init__(self, budget, page, path, path_record=(0,)):
-        """__init__(budget, page, path, path_record=(0,))
+    def __init__(self, budget, page, pane_path, path_record=(0,)):
+        """__init__(budget, page, pane_path, path_record=(0,))
         
         budget: budget: budget showed ("base.Budget" object)
         page: weak reference from Page instance which creates this class
-        path: tuple that represents the path of the List in the Page
+        pane_path: tuple that represents the path of the List in the Page
         path_record: path of the active record in the budget
         
         self.__selection:
         self.__budget: budget: budget showed ("base.Budget" object)
         self.__page: weak reference from Page instance which creates this class
-        self.__path: tuple that represents the path of the List in the Page
+        self.__pane_path: tuple that represents the path of the List in the Page
         self.__active_path_record: path of the active record in the budget
         self.__widget: main widget, a gtk.HPaned
         self.__treestore: to store companys data
@@ -3929,7 +3931,7 @@
             raise ValueError, _("Argument must be a Budget object")
         self.__budget = budget
         self.__page = page
-        self.__path = path
+        self.__pane_path = pane_path
         self.__active_path_record = path_record
         # main widget
         self.__widget = gtk.HPaned()
@@ -4088,13 +4090,13 @@
         """
         self.__active_path_record = record_path
 
-    def runMessage(self, message, path, arg=None):
-        """runMessage(message, path, arg=None)
+    def runMessage(self, message, pane_path, arg=None):
+        """runMessage(message, pane_path, arg=None)
         
         message: the message type
             "change_active": change the active record
             "clear": clear instance
-        path: tuple that identifies the pane in the notebook page
+        pane_path: tuple that identifies the pane in the notebook page
         arg: tuple whit two items:
             0: record path in the budget
             1: record code
@@ -4161,19 +4163,19 @@
         """
         return self.__widget
 
-    def _getPath(self):
-        """_getPath()
+    def _getPanePath(self):
+        """_getPanePath()
         
         return the tuple that identifies the pane in the notebook page
         """
-        return self.__path
-
-    def _setPath(self, path):
-        """_setPath()
+        return self.__pane_path
+
+    def _setPanePath(self, pane_path):
+        """_setPanePath()
         
         sets the tuple that identifies the pane in the notebook page
         """
-        self.__path = path
+        self.__pane_path = pane_path
 
     def _getPage(self):
         """_getPage()
@@ -4207,7 +4209,7 @@
         "Active path record")
     widget = property(_getWidget, None, None,
         "main widget")
-    path = property(_getPath, _setPath, None,
+    pane_path = property(_getPanePath, _setPanePath, None,
         "Path that identifies the item in the page notebook")
     page = property(_getPage, _setPage, None,
         "Weak reference from Page instance which creates this class")