projects
/
photoprint.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6a86e44
)
Refactoring pour prendre en compte nouvelle signature de « translate ».
author
Benoît Pin
<benoit.pin@gmail.com>
Thu, 3 Oct 2013 20:58:09 +0000
(22:58 +0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Thu, 3 Oct 2013 20:58:09 +0000
(22:58 +0200)
price.py
patch
|
blob
|
history
diff --git
a/price.py
b/price.py
index
fc74252
..
dae05fb
100755
(executable)
--- a/
price.py
+++ b/
price.py
@@
-70,7
+70,7
@@
class Price(object, Persistent) :
n = str(round(n, 2))
i, d = n.split('.')
ds = _(u'${i}.${d}', mapping={'i':i, 'd':d}, default=n)
n = str(round(n, 2))
i, d = n.split('.')
ds = _(u'${i}.${d}', mapping={'i':i, 'd':d}, default=n)
- return translate(ds
, getRequest()
).encode('utf-8')
+ return translate(ds).encode('utf-8')
def getValues(self) :
values = {'value':self._price,
def getValues(self) :
values = {'value':self._price,