Beispiel #1
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)

        try:
            undos = self.model.transport.getUndoableTransactions()
        except xmlrpclib.Fault, error:
            wx.LogError(Utils.html2txt(error.faultString))
Beispiel #2
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)

        try:
            undos = self.model.transport.getUndoableTransactions()
        except xmlrpclib.Fault, error:
            wx.LogError(Utils.html2txt(error.faultString))
Beispiel #3
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)

        perms = self.model.transport.getPermissions()
        roles = self.model.transport.getRoles()

        colls = [("Acquired", 40), ("Permission", 275)]
        for role in roles:
            colls.append((role, 75))

        self.addReportColumns(colls)

        i = 0
        for perm in perms:
            self.addReportItems(
                *(
                    i,
                    (
                        (perm["acquire"] == "CHECKED" and "*" or "", perm["name"])
                        + tuple(map(lambda x: x["checked"] == "CHECKED" and "*" or "", perm["roles"]))
                    ),
                )
            )
            i = i + 1

        self.pastelise()
Beispiel #4
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT, (("Undo", self.OnUndo, self.undoBmp, ""),), -1)
        self.addReportColumns((("Action", 300), ("User", 75), ("Date", 130)))

        self.active = True

        self.undoIds = []
Beispiel #5
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          (('Undo', self.OnUndo, self.undoBmp, ''),), -1)
        self.addReportColumns( (('Action', 300), ('User', 75), ('Date', 130)) )

        self.active = True

        self.undoIds = []
Beispiel #6
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
                              (('Undo', self.OnUndo, self.undoBmp, ''), ), -1)
        self.addReportColumns((('Action', 300), ('User', 75), ('Date', 130)))

        self.active = True

        self.undoIds = []
Beispiel #7
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)

        errLogNode = self.model.transport

        try:
            entries = errLogNode.getResource().getLogEntries()
        except xmlrpclib.Fault, error:
            wx.LogError(Utils.html2txt(error.faultString))
Beispiel #8
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)

        errLogNode = self.model.transport

        try:
            entries = errLogNode.getResource().getLogEntries()
        except xmlrpclib.Fault, error:
            wx.LogError(Utils.html2txt(error.faultString))
Beispiel #9
0
 def __init__(self, parent, model):
     ListCtrlView.__init__(
         self,
         parent,
         model,
         wx.LC_REPORT,
         (
             ("Open traceback", self.OnOpen, self.gotoTracebackBmp, ""),
             ("Refresh", self.OnRefresh, self.refreshBmp, "Refresh"),
         ),
         0,
     )
     self.active = True
Beispiel #10
0
    def refreshCtrl(self):
        wx.BeginBusyCursor()
        try:
            ListCtrlView.refreshCtrl(self)
            i = 0
            self.listResultIdxs = []
            for mod in self.results.keys():
                for result in self.results[mod]:
                    self.listResultIdxs.append((mod, result))
                    i = self.addReportItems(i, (os.path.basename(mod), `result[0]`,
                      `result[1]`, result[2].strip()) )

            self.model.editor.statusBar.setHint(_('%d matches of "%s".')%(i, self.findPattern))
            self.pastelise()
        finally:
            wx.EndBusyCursor()
Beispiel #11
0
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT, (
            (_('Start'), self.OnStart, '-', ''),
            (_('End'), self.OnEnd, '-', ''),
            (_('Delete'), self.OnDelete, '-', ''),
        ), 1)

        self.InsertColumn(0, _('Start'), width=150)
        self.InsertColumn(1, _('End'), width=150)
        self.InsertColumn(2, _('Description'), width=350)

        self.sortOnColumns = [0, 1]

        self.times = []

        self.active = True
        self.model = model
    def __init__(self, parent, model):
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          ((_('Start'), self.OnStart, '-', ''),
           (_('End'), self.OnEnd, '-', ''),
           (_('Delete'), self.OnDelete, '-', ''),
          ), 1)

        self.InsertColumn(0, _('Start'), width=150)
        self.InsertColumn(1, _('End'), width=150)
        self.InsertColumn(2, _('Description'), width=350)

        self.sortOnColumns = [0, 1]

        self.times = []

        self.active = True
        self.model = model
    def refreshCtrl(self):
        wx.BeginBusyCursor()
        try:
            ListCtrlView.refreshCtrl(self)
            i = 0
            self.listResultIdxs = []
            for mod in self.results.keys():
                for result in self.results[mod]:
                    self.listResultIdxs.append((mod, result))
                    i = self.addReportItems(
                        i, (os.path.basename(mod), ` result[0] `, ` result[1]
                            `, result[2].strip()))

            self.model.editor.statusBar.setHint(
                _('%d matches of "%s".') % (i, self.findPattern))
            self.pastelise()
        finally:
            wx.EndBusyCursor()
Beispiel #14
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)
        try:
            self.times = self.readTimes()
        except Explorer.TransportLoadError:
            self.times = []
            #fn = self.getTTVFilename()
            #if not path.exists(fn): open(fn, 'w')

        i = 0
        modSort = self.model.modules.keys()
        modSort.sort()
        for start, end, desc in self.times:
            i = self.addReportItems(i,
                                    (self.getTimeStr(start),
                                     end and self.getTimeStr(end) or '', desc))

        self.pastelise()
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)
        try:
            self.times = self.readTimes()
        except Explorer.TransportLoadError:
            self.times = []
            #fn = self.getTTVFilename()
            #if not path.exists(fn): open(fn, 'w')

        i = 0
        modSort = self.model.modules.keys()
        modSort.sort()
        for start, end, desc in self.times:
            i = self.addReportItems(i,
                  (self.getTimeStr(start),
                   end and self.getTimeStr(end) or '',
                   desc) )

        self.pastelise()
Beispiel #16
0
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('find results'))
        ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
          ( (_('Goto match'), self.OnGoto, self.gotoLineBmp, ()),
            (_('Re-run query'), self.OnRerun, '-', 'Refresh')
          ) + self.closingActionItems, 0)

        self.InsertColumn(0, _('Module'), width = 100)
        self.InsertColumn(1, _('Line no'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(2, _('Col'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(3, _('Text'), width = 550)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = 'Results'
        self.findPattern = ''
        self.active = True
        self.model = model
        self.rerunCallback = None
        self.rerunParams = ()
Beispiel #17
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)

        perms = self.model.transport.getPermissions()
        roles = self.model.transport.getRoles()

        colls = [('Acquired', 40), ('Permission', 275)]
        for role in roles:
            colls.append( (role, 75) )

        self.addReportColumns( colls )

        i = 0
        for perm in perms:
            self.addReportItems(*(i, ((perm['acquire'] == 'CHECKED' and '*' or '',
                  perm['name']) + tuple(map( lambda x: x['checked'] == 'CHECKED' and '*' or '',
                  perm['roles'])) )))
            i = i + 1

        self.pastelise()
    def __init__(self, parent, model):
        CloseableViewMix.__init__(self, _('find results'))
        ListCtrlView.__init__(
            self, parent, model, wx.LC_REPORT,
            ((_('Goto match'), self.OnGoto, self.gotoLineBmp, ()),
             (_('Re-run query'), self.OnRerun, '-', 'Refresh')) +
            self.closingActionItems, 0)

        self.InsertColumn(0, _('Module'), width=100)
        self.InsertColumn(1, _('Line no'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(2, _('Col'), wx.LIST_FORMAT_CENTRE, 40)
        self.InsertColumn(3, _('Text'), width=550)

        self.results = {}
        self.listResultIdxs = []
        self.tabName = 'Results'
        self.findPattern = ''
        self.active = True
        self.model = model
        self.rerunCallback = None
        self.rerunParams = ()
Beispiel #19
0
    def refreshCtrl(self):
        ListCtrlView.refreshCtrl(self)

        perms = self.model.transport.getPermissions()
        roles = self.model.transport.getRoles()

        colls = [('Acquired', 40), ('Permission', 275)]
        for role in roles:
            colls.append((role, 75))

        self.addReportColumns(colls)

        i = 0
        for perm in perms:
            self.addReportItems(
                *(i,
                  ((perm['acquire'] == 'CHECKED' and '*' or '', perm['name']) +
                   tuple(
                       map(lambda x: x['checked'] == 'CHECKED' and '*' or '',
                           perm['roles'])))))
            i = i + 1

        self.pastelise()
Beispiel #20
0
 def __init__(self, parent, model):
     ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
       (('Open traceback', self.OnOpen, self.gotoTracebackBmp, ''),
        ('Refresh', self.OnRefresh, self.refreshBmp, 'Refresh')), 0)
     self.active = True
Beispiel #21
0
 def __init__(self, parent, model):
     ListCtrlView.__init__(
         self, parent, model, wx.LC_REPORT,
         (('Open traceback', self.OnOpen, self.gotoTracebackBmp, ''),
          ('Refresh', self.OnRefresh, self.refreshBmp, 'Refresh')), 0)
     self.active = True
Beispiel #22
0
 def __init__(self, parent, model):
     ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
                           (('Edit', self.OnEdit, self.undoBmp, ''), ), -1)
     self.active = True
Beispiel #23
0
 def __init__(self, parent, model):
     ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
       (('Edit', self.OnEdit, self.undoBmp, ''),), -1)
     self.active = True