Ejemplo n.º 1
0
 def get_supported_conversions(self):
     yield ('excel', _("Excel"), 'xls',
            'trac.ticket.Query', 'application/vnd.ms-excel', 8)
     yield ('excel-history', _("Excel including history"), 'xls',
            'trac.ticket.Query', 'application/vnd.ms-excel', 8)
     yield ('excel-history', _("Excel including history"), 'xls',
            'trac.ticket.Ticket', 'application/vnd.ms-excel', 8)
Ejemplo n.º 2
0
 def get_supported_conversions(self):
     yield ('excel', _("Excel"), 'xls', 'trac.ticket.Query',
            'application/vnd.ms-excel', 8)
     yield ('excel-history', _("Excel including history"), 'xls',
            'trac.ticket.Query', 'application/vnd.ms-excel', 8)
     yield ('excel-history', _("Excel including history"), 'xls',
            'trac.ticket.Ticket', 'application/vnd.ms-excel', 8)
Ejemplo n.º 3
0
 def get_supported_conversions(self):
     format = get_excel_format(self.env)
     mimetype = get_excel_mimetype(format)
     yield ('excel', _("Excel"), format, 'trac.ticket.Query', mimetype, 8)
     yield ('excel-history', _("Excel including history"), format,
            'trac.ticket.Query', mimetype, 8)
     yield ('excel-history', _("Excel including history"), format,
            'trac.ticket.Ticket', mimetype, 8)
Ejemplo n.º 4
0
 def _add_alternate_links(self, req):
     params = {}
     for arg in req.args.keys():
         if not arg.isupper():
             continue
         params[arg] = req.args.get(arg)
     if 'USER' not in params:
         params['USER'] = req.authname
     if 'sort' in req.args:
         params['sort'] = req.args['sort']
     if 'asc' in req.args:
         params['asc'] = req.args['asc']
     href = ''
     if params:
         href = '&' + unicode_urlencode(params)
     add_link(req, 'alternate', '?format=xls' + href, _("Excel"),
              'application/vnd.ms-excel')
Ejemplo n.º 5
0
 def _add_alternate_links(self, req):
     params = {}
     for arg in req.args.keys():
         if not arg.isupper():
             continue
         params[arg] = req.args.get(arg)
     if 'USER' not in params:
         params['USER'] = req.authname
     if 'sort' in req.args:
         params['sort'] = req.args['sort']
     if 'asc' in req.args:
         params['asc'] = req.args['asc']
     href = ''
     if params:
         href = '&' + unicode_urlencode(params)
     add_link(req, 'alternate', '?format=xls' + href, _("Excel"),
              'application/vnd.ms-excel')
Ejemplo n.º 6
0
 def _add_alternate_links(self, req):
     params = {}
     for arg in req.args.keys():
         if not arg.isupper():
             continue
         params[arg] = req.args.get(arg)
     if 'USER' not in params:
         params['USER'] = req.authname
     if 'sort' in req.args:
         params['sort'] = req.args['sort']
     if 'asc' in req.args:
         params['asc'] = req.args['asc']
     href = ''
     if params:
         href = '&' + unicode_urlencode(params)
     format = get_excel_format(self.env)
     mimetype = get_excel_mimetype(format)
     add_link(req, 'alternate', '?format=' + format + href, _("Excel"),
              mimetype)