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')
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,