X-Git-Url: https://svn.cri.ensmp.fr/git/photoprint.git/blobdiff_plain/3619e9abcedd109fe262127dd53e8af716025391..8db44a89ad1641ae718b6763c0af0a7f08476e03:/price.py?ds=sidebyside diff --git a/price.py b/price.py index cec0737..dae05fb 100755 --- a/price.py +++ b/price.py @@ -19,7 +19,7 @@ from Globals import Persistent from AccessControl import ModuleSecurityInfo from utils import Message as _ from utils import translate -from Products.globalrequest import getRequest +from zope.globalrequest import getRequest msecurity = ModuleSecurityInfo('Products.photoprint.price') msecurity.declarePublic('Price') @@ -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) - return translate(ds, getRequest()).encode('utf-8') + return translate(ds).encode('utf-8') def getValues(self) : values = {'value':self._price,