• R/O
  • SSH
  • HTTPS

traclight: Commit


Commit MetaInfo

Revision99 (tree)
Zeit2010-11-27 21:03:29
Autorokamototk

Log Message

unused file.

Ändern Zusammenfassung

Diff

--- branches/tl3_0/plugins/svn/excelreport/setup.py (revision 98)
+++ branches/tl3_0/plugins/svn/excelreport/setup.py (revision 99)
@@ -3,7 +3,7 @@
33 from setuptools import setup, find_packages
44
55 PACKAGE = 'ExcelReportPlugin'
6-VERSION = '0.1'
6+VERSION = '0.2'
77
88 setup (
99 name = PACKAGE,
--- branches/tl3_0/plugins/svn/excelreport/excelreport/excelreport.py (revision 98)
+++ branches/tl3_0/plugins/svn/excelreport/excelreport/excelreport.py (revision 99)
@@ -6,7 +6,7 @@
66 from trac.ticket.web_ui import TicketModule
77 from trac.ticket.query import QueryModule
88 from pyExcelerator import *
9-from datetime import datetime
9+from datetime import *
1010 import copy
1111 import types
1212 import re
@@ -51,12 +51,6 @@
5151
5252 def render(self, req, cols, rows,id):
5353
54- req.send_response(200)
55- req.send_header('Content-Type', self.get_report_mimetype())
56- req.send_header('Content-Disposition',
57- 'filename=Report%s.xls' % id)
58- req.end_headers()
59-
6054 wb = Workbook()
6155 sheetname = "Report%s" % id
6256
@@ -135,6 +129,8 @@
135129 rows, range(len(rows))):
136130 if type(value) is int:
137131 ws.write(rx, cx, value, self.style_num)
132+ elif type(value) is long:
133+ ws.write(rx, cx, datetime.fromtimestamp(int(value*1e-6)), self.style_date)
138134 elif type(value) is datetime:
139135 ws.write(rx, cx, value, self.style_date)
140136 elif type(value) is types.NoneType:
@@ -141,9 +137,14 @@
141137 ws.write(rx, cx, '-',self.style_str)
142138 else:
143139 ws.write(rx, cx, value, style)
144-
145-
146- req.write(wb.get())
140+ buf = wb.get()
141+ req.send_response(200)
142+ req.send_header('Content-Type', self.get_report_mimetype())
143+ req.send_header('Content-Disposition',
144+ 'filename=Report%s.xls' % id)
145+ req.send_header('Content-Length', len(buf))
146+ req.end_headers()
147+ req.write(buf)
147148
148149 def convertComments(self, x):
149150 try:
--- branches/tl3_0/plugins/svn/masterticketsplugin/mastertickets/api.py (revision 98)
+++ branches/tl3_0/plugins/svn/masterticketsplugin/mastertickets/api.py (revision 99)
@@ -1,3 +1,4 @@
1+# -*- coding: utf-8 -*-
12 # Created by Noah Kantrowitz on 2007-07-04.
23 # Copyright (c) 2007 Noah Kantrowitz. All rights reserved.
34 import re
@@ -92,11 +93,11 @@
9293 config_dirty = False
9394 if 'blocking' not in custom:
9495 custom.set('blocking', 'text')
95- custom.set('blocking.label', 'Blocking')
96+ custom.set('blocking.label', u'ブロックするチケット')
9697 config_dirty = True
9798 if 'blockedby' not in custom:
9899 custom.set('blockedby', 'text')
99- custom.set('blockedby.label', 'Blocked By')
100+ custom.set('blockedby.label', u'ブロックされるチケット')
100101 config_dirty = True
101102 if config_dirty:
102103 self.config.save()
--- branches/tl3_0/plugins/svn/masterticketsplugin/mastertickets/web_ui.py (revision 98)
+++ branches/tl3_0/plugins/svn/masterticketsplugin/mastertickets/web_ui.py (revision 99)
@@ -1,3 +1,4 @@
1+# -*- coding: utf-8 -*-
12 import subprocess
23
34 from pkg_resources import resource_filename
@@ -61,7 +62,7 @@
6162
6263 # Add link to depgraph if needed
6364 if links:
64- add_ctxtnav(req, 'Depgraph', req.href.depgraph(tkt.id))
65+ add_ctxtnav(req, u'チケット依存関係', req.href.depgraph(tkt.id))
6566
6667 for change in data.get('changes', {}):
6768 if not change.has_key('fields'):
Show on old repository browser