Subversion Repositories basico

Rev

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

Rev 263 Rev 264
Line 211... Line 211...
211
        else:
211
        else:
212
            visor = self.srvgui.get_widget('visor_sapnotes')
212
            visor = self.srvgui.get_widget('visor_sapnotes')
213
            bag = visor.get_bag()
213
            bag = visor.get_bag()
214
            for sid in bag:
214
            for sid in bag:
215
                self.srvdtb.set_collections(sid, selected)
215
                self.srvdtb.set_collections(sid, selected)
216
        viewmenu = self.srvgui.get_widget('viewmenu')
-
 
217
        viewmenu.populate()
-
 
218
        viewmenu.grab_focus()
-
 
-
 
216
        visor = self.srvgui.get_widget('visor_sapnotes')
-
 
217
        # ~ viewmenu = self.srvgui.get_widget('viewmenu')
-
 
218
        # ~ viewmenu.populate()
-
 
219
        visor.reload()
-
 
220
        # ~ viewmenu.grab_focus()
219
        self.popover.hide()
221
        self.popover.hide()
220
222
221
223
222
    def row_changed(self, selection):
224
    def row_changed(self, selection):
223
        """
225
        """
Line 246... Line 248...
246
            name = entry.get_text()
248
            name = entry.get_text()
247
            self.srvclt.create(name)
249
            self.srvclt.create(name)
248
250
249
        self.model.clear()
251
        self.model.clear()
250
        collections = self.srvclt.get_all()
252
        collections = self.srvclt.get_all()
251
        self.app.debug("NUM COLS:: %d" % len(collections))
-
 
252
        if len(collections) > 0:
253
        if len(collections) > 0:
253
            for cid in collections:
254
            for cid in collections:
254
                name = collections[cid]
255
                name = collections[cid]
255
                if cid in linked:
256
                if cid in linked:
256
                    self.model.append([cid, 1, name])
257
                    self.model.append([cid, 1, name])