Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 379 → Rev 380

/branches/BR-0.4/basico/widgets/wdg_visor_sapnotes.py
34,7 → 34,7
class SAPNotesVisor(BasicoWidget, Gtk.Box):
def __init__(self, app):
super().__init__(app, __class__.__name__)
Gtk.Box.__init__(self, app)
Gtk.Box.__init__(self, app)
self.get_services()
self.bag = []
self.icons = {}
487,7 → 487,7
attachment['Created']
)
self.model.append(pid, node)
 
self.treeview.set_model(self.sorted_model)
self.update_total_sapnotes_count()
self.show_widgets()
523,6 → 523,10
self.srvclb.gui_show_popover(None, popover)
 
 
def clb_create_annotation(self, button, sid):
self.srvclb.action_annotation_create_for_sapnote(sid)
 
 
def build_popover(self, sid, popover, component):
box = Gtk.Box(spacing = 3, orientation="vertical")
isid = int(sid)
557,7 → 561,7
# Popover button "Add an annotation"
button = get_popover_button("<b>Add an annotation</b> to SAP Note %d" % isid, 'basico-annotation')
button.show_all()
button.connect('clicked', self.srvclb.gui_annotation_widget_show, sid, 'create')
button.connect('clicked', self.clb_create_annotation, sid)
box.pack_start(button, False, False, 0)
 
# Popover button "Add attachments"
565,7 → 569,7
button.show_all()
button.connect('clicked', self.srvclb.gui_attachment_add_to_sapnote, sid)
box.pack_start(button, False, False, 0)
 
# Popover button "Open SAP Note"
button = get_popover_button("<b>Browse</b> SAP Note %d" % isid, 'basico-browse')
button.connect('clicked', self.srvclb.sapnote_browse, sid)