Commit b37dea15 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Use global variable instead of hardcoded value.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10241 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 95ddc944
...@@ -37,7 +37,7 @@ from Products.ERP5Type.Base import TempBase ...@@ -37,7 +37,7 @@ from Products.ERP5Type.Base import TempBase
from Products.CMFCategory.Renderer import Renderer from Products.CMFCategory.Renderer import Renderer
from zLOG import LOG from zLOG import LOG, ERROR
...@@ -309,7 +309,7 @@ class Amount(Base, Variated): ...@@ -309,7 +309,7 @@ class Amount(Base, Variated):
try: try:
self.setProperty(property_id, property_value) self.setProperty(property_id, property_value)
except KeyError: except KeyError:
LOG("Amount", 200, "Can not set %s with value %s on %s" % \ LOG("Amount", ERROR, "Can not set %s with value %s on %s" % \
(property_id, property_value, self.getRelativeUrl())) (property_id, property_value, self.getRelativeUrl()))
raise raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment