Exemplo n.º 1
0
    def getReportText(self, fileDir):

        text = redRReports.createTable(self.data)

        return {
            self.widgetName: {
                'includeInReports': self.includeInReports,
                'text': text
            }
        }
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
 def getReportText(self, fileDir):
     
     text = redRReports.createTable(self.data)
     
     return {self.widgetName:{'includeInReports': self.includeInReports, 'text': text}}