Subversion Repositories basico

Rev

Rev 230 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 230 Rev 232
Line 30... Line 30...
30
    view = 'component'
30
    view = 'component'
31
31
32
    def __init__(self, app):
32
    def __init__(self, app):
33
        SAPNoteView.__init__(self, app)
33
        SAPNoteView.__init__(self, app)
34
        self.app = app
34
        self.app = app
-
 
35
        self.row_type = None
35
36
36
37
37
    def prepare(self):
38
    def prepare(self):
38
        self.column_rowtype.set_visible(False)
39
        self.column_rowtype.set_visible(False)
39
        self.column_checkbox.set_visible(False)
40
        self.column_checkbox.set_visible(False)
Line 58... Line 59...
58
59
59
    def refresh(self):
60
    def refresh(self):
60
        visor = self.gui.get_widget('visor')
61
        visor = self.gui.get_widget('visor')
61
        try:
62
        try:
62
            self.set_view(self.view)
63
            self.set_view(self.view)
63
            matches = self.db.get_notes_by_node(self.row_type, self.cid)
-
 
64
            visor.populate(matches)
-
 
-
 
64
            if self.row_type is not None:
-
 
65
                matches = self.db.get_notes_by_node(self.row_type, self.cid)
-
 
66
                visor.populate(matches)
65
        except Exception as error:
67
        except Exception as error:
66
            self.debug(error)
68
            self.debug(error)
67
            self.print_traceback()
69
            self.print_traceback()
68
70
69
71