summaryrefslogtreecommitdiff
path: root/bin/report
diff options
context:
space:
mode:
authorChristophe Simonis <chs@tinyerp.com>2008-07-08 08:13:12 +0000
committerChristophe Simonis <chs@tinyerp.com>2008-07-08 08:13:12 +0000
commit0b1dfd702fd5b087f0e1be81ccf3ed77f0dcf3da (patch)
tree59dfe23edf8dd0833fc73f051bfa7edf16ff5728 /bin/report
parentf8262137d224a9390d757c6ee3a75d52ef7c0868 (diff)
* translation of nearly all exceptions
* the export of translations per module take only the files of these modules bzr revid: chs@tinyerp.com-52cb3686b17250df7bc23bf90d18397c7888e6f2
Diffstat (limited to 'bin/report')
-rw-r--r--bin/report/custom.py2
-rw-r--r--bin/report/interface.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/report/custom.py b/bin/report/custom.py
index b3cb1653d24..77fb343b47c 100644
--- a/bin/report/custom.py
+++ b/bin/report/custom.py
@@ -571,7 +571,7 @@ class report_custom(report_int):
colors = map(lambda x:fill_style.Plain(bgcolor=x), misc.choice_colors(len(results)))
if reduce(lambda x,y : x+y, map(lambda x : x[1],results)) == 0.0:
- raise('The sum of the data (2nd field) is null. \nWe can draw a pie chart !')
+ raise(_('The sum of the data (2nd field) is null.\nWe can draw a pie chart !'))
plot = pie_plot.T(data=results, arc_offsets=[0,10,0,10],
shadow = (2, -2, fill_style.gray50),
diff --git a/bin/report/interface.py b/bin/report/interface.py
index 1add275c727..5a5333cf462 100644
--- a/bin/report/interface.py
+++ b/bin/report/interface.py
@@ -55,7 +55,7 @@ def toxml(val):
class report_int(netsvc.Service):
def __init__(self, name, audience='*'):
- assert not netsvc.service_exist(name), 'The report "%s" already exist!'%name
+ assert not netsvc.service_exist(name), 'The report "%s" already exist!' % name
super(report_int, self).__init__(name, audience)
if name[0:7]<>'report.':
raise Exception, 'ConceptionError, bad report name, should start with "report."'