access attribute directly

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3602 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-10-26 18:18:09 +00:00
parent 8a3d934f53
commit a5ce14adb3

View file

@ -113,7 +113,8 @@ class BaseView(SchemaBaseView):
def getCost(self, service=None):
if service is None:
service = self.context
value = service.getCost()
#value = service.getCost()
value = service.cost
if value:
return ('%.2f Euro' % float(value)).replace('.', ',')
return u''