equal
deleted
inserted
replaced
124 def RefreshLocationsTree(self): |
124 def RefreshLocationsTree(self): |
125 root = self.LocationsTree.GetRootItem() |
125 root = self.LocationsTree.GetRootItem() |
126 if not root.IsOk(): |
126 if not root.IsOk(): |
127 root = self.LocationsTree.AddRoot("") |
127 root = self.LocationsTree.AddRoot("") |
128 self.GenerateLocationsTreeBranch(root, self.Locations) |
128 self.GenerateLocationsTreeBranch(root, self.Locations) |
129 self.LocationsTree.Expand(root) |
|
130 |
129 |
131 def GenerateLocationsTreeBranch(self, root, locations): |
130 def GenerateLocationsTreeBranch(self, root, locations): |
132 to_delete = [] |
131 to_delete = [] |
133 item, root_cookie = self.LocationsTree.GetFirstChild(root) |
132 item, root_cookie = self.LocationsTree.GetFirstChild(root) |
134 for loc_infos in locations: |
133 for loc_infos in locations: |