Subversion Repositories basico

Rev

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

Rev 380 Rev 383
Line 119... Line 119...
119
119
120
    def sapnote_browse(self, button, sid):
120
    def sapnote_browse(self, button, sid):
121
        self.log.info("Browsing SAP Note %d" % int(sid))
121
        self.log.info("Browsing SAP Note %d" % int(sid))
122
        SAP_NOTE_URL = self.srvstg.get('SAP', 'SAP_NOTE_URL')
122
        SAP_NOTE_URL = self.srvstg.get('SAP', 'SAP_NOTE_URL')
123
        url = SAP_NOTE_URL % sid
123
        url = SAP_NOTE_URL % sid
-
 
124
        self.srvuif.grab_focus()
124
        self.srvutl.browse(url)
125
        self.srvutl.browse(url)
125
126
126
127
127
    def sapnote_download_pdf(self, button, sid):
128
    def sapnote_download_pdf(self, button, sid):
128
        self.log.info("Browsing PDF for SAP Note %d" % int(sid))
129
        self.log.info("Browsing PDF for SAP Note %d" % int(sid))
Line 375... Line 376...
375
        elif action == 'edit':
376
        elif action == 'edit':
376
            widget_annotation.set_visible_stack('editor')
377
            widget_annotation.set_visible_stack('editor')
377
        elif action == 'preview':
378
        elif action == 'preview':
378
            widget_annotation.set_visible_stack('preview')
379
            widget_annotation.set_visible_stack('preview')
379
380
380
        self.log.debug("%s %s", action, aid)
-
 
-
 
381
        self.log.debug("Action: %s annotation with Id: %s", action, aid)
-
 
382
381
        widget_annotation.set_metadata_to_widget(aid, action)
383
        widget_annotation.set_metadata_to_widget(aid, action)
382
        self.srvuif.set_widget_visibility('gtk_vbox_container_annotations', True)
384
        self.srvuif.set_widget_visibility('gtk_vbox_container_annotations', True)
383
        self.srvuif.grab_focus()
385
        self.srvuif.grab_focus()
384
386
385
387
386
    def gui_show_popover(self, button, popover):
388
    def gui_show_popover(self, button, popover):
387
        self.srvgui.set_key_value('LAST_POPOVER', popover)
389
        self.srvgui.set_key_value('LAST_POPOVER', popover)
388
        if popover.get_visible():
390
        if popover.get_visible():
-
 
391
            popover.popdown()
389
            popover.hide()
392
            popover.hide()
390
        else:
393
        else:
391
            popover.show_all()
394
            popover.show_all()
-
 
395
            popover.popup()
392
396
393
397
394
    def switch_bookmark_current_view(self, *args):
398
    def switch_bookmark_current_view(self, *args):
395
        visor_sapnotes = self.srvgui.get_widget('visor_sapnotes')
399
        visor_sapnotes = self.srvgui.get_widget('visor_sapnotes')
396
        bag = visor_sapnotes.get_filtered_bag()
400
        bag = visor_sapnotes.get_filtered_bag()