def getReportText(self, fileDir): text = redRReports.createTable(self.data) return { self.widgetName: { 'includeInReports': self.includeInReports, 'text': text } }
def getReportText(self, fileDir): items = self.getItems() selected = self.currentSelection() new = [] for x in items: if x in selected: new.append([_('Selected'), x]) else: new.append([_('Not Selected'),x]) #print new text = redRReports.createTable(new,columnNames=[_('Selection'),_('Option')]) # if text != '': # text += '\nSelected text has * in front' r = {self.widgetName:{'includeInReports': self.includeInReports, 'text': text}} return r
def getReportText(self, fileDir): items = self.getItems() selected = self.currentSelection() new = [] for x in items: if x in selected: new.append([_('Selected'), x]) else: new.append([_('Not Selected'), x]) #print new text = redRReports.createTable( new, columnNames=[_('Selection'), _('Option')]) # if text != '': # text += '\nSelected text has * in front' r = { self.widgetName: { 'includeInReports': self.includeInReports, 'text': text } } return r
def getReportText(self, fileDir): text = redRReports.createTable(self.data) return {self.widgetName:{'includeInReports': self.includeInReports, 'text': text}}