Subversion Repositories basico

Rev

Rev 279 | Rev 297 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 279 Rev 287
Line 159... Line 159...
159
                pkey = '%s-%s-%s' % (skey, key, value)
159
                pkey = '%s-%s-%s' % (skey, key, value)
160
                self.model.append(pid, [pkey, '<span color="blue">%s</span>' % key, value])
160
                self.model.append(pid, [pkey, '<span color="blue">%s</span>' % key, value])
161
161
162
162
163
        # WIDGETS NODE
163
        # WIDGETS NODE
164
        # ~ root = self.model.append(None, ['root', '<big><b>Runtime Objects</b></big>', ''])
-
 
-
 
164
        root = self.model.append(None, ['root', '<big><b>Runtime Objects</b></big>', ''])
165
165
166
        # ~ wdgdict = {}
-
 
167
        # ~ widgets = self.srvgui.get_widgets()
-
 
168
        # ~ for name in widgets:
-
 
169
            # ~ objname = escape(str(widgets[name]))
-
 
170
            # ~ pobj = gobject = objname[4:objname.find(' ')]
-
 
171
            # ~ gobj_left = gobject[:gobject.find('.')]
-
 
172
            # ~ gobj_right = gobject[gobject.find('.')+1:]
-
 
173
            # ~ pobj = gobject[:gobject.find('.')]
-
 
174
            # ~ try:
-
 
175
                # ~ ppid_left = wdgdict[gobj_left]
-
 
176
            # ~ except:
-
 
177
                # ~ ppid_left = self.model.append(root, [gobj_left, '<b>%s</b>' % gobj_left, ''])
-
 
178
                # ~ wdgdict[gobj_left] = ppid_left
-
 
-
 
166
        wdgdict = {}
-
 
167
        widgets = self.srvgui.get_widgets()
-
 
168
        for name in widgets:
-
 
169
            objname = escape(str(widgets[name]))
-
 
170
            pobj = gobject = objname[4:objname.find(' ')]
-
 
171
            gobj_left = gobject[:gobject.find('.')]
-
 
172
            gobj_right = gobject[gobject.find('.')+1:]
-
 
173
            pobj = gobject[:gobject.find('.')]
-
 
174
            try:
-
 
175
                ppid_left = wdgdict[gobj_left]
-
 
176
            except:
-
 
177
                ppid_left = self.model.append(root, [gobj_left, '<b>%s</b>' % gobj_left, ''])
-
 
178
                wdgdict[gobj_left] = ppid_left
179
179
180
180
181
            # ~ try:
-
 
182
                # ~ ppid_right = wdgdict[gobj_right]
-
 
183
            # ~ except:
-
 
184
                # ~ ppid_right = self.model.append(ppid_left, [gobj_right, '<b>%s</b>' % gobj_right, ''])
-
 
185
                # ~ wdgdict[gobj_right] = ppid_right
-
 
-
 
181
            try:
-
 
182
                ppid_right = wdgdict[gobj_right]
-
 
183
            except:
-
 
184
                ppid_right = self.model.append(ppid_left, [gobj_right, '<b>%s</b>' % gobj_right, ''])
-
 
185
                wdgdict[gobj_right] = ppid_right
186
186
187
            # ~ self.model.append(ppid_right, [gobject, name, objname[4:-4]])
-
 
-
 
187
            self.model.append(ppid_right, [gobject, name, objname[4:-4]])
188
188
189
        # BACKUPS NODE
189
        # BACKUPS NODE
190
        # ~ root = self.model.append(None, ['root', '<big><b>Backups Overview</b></big>', ''])
190
        # ~ root = self.model.append(None, ['root', '<big><b>Backups Overview</b></big>', ''])
191
        # ~ backups = self.srvbnr.get_all_backups()
191
        # ~ backups = self.srvbnr.get_all_backups()
192
        # ~ for backup in backups:
192
        # ~ for backup in backups: