Commit b928e3e4 authored by Jean-Paul Smets's avatar Jean-Paul Smets Committed by Xiaowu Zhang

Fix typo in Localize spelling

and add a comment to explain deprecation.
parent cbf83e71
...@@ -94,8 +94,8 @@ class TranslatedGetter(Getter): ...@@ -94,8 +94,8 @@ class TranslatedGetter(Getter):
wf = portal.portal_workflow.getWorkflowById(self._key) wf = portal.portal_workflow.getWorkflowById(self._key)
state_id = wf._getWorkflowStateOf(instance, id_only=1) state_id = wf._getWorkflowStateOf(instance, id_only=1)
warn('Translated workflow state getters, such as %s are deprecated' % warn('Translated workflow state getters, such as %s are deprecated' %
self._id, DeprecationWarning) self._id, DeprecationWarning) # And why so XXXX ?
return portal.localizer.erp5_ui.gettext(state_id).encode('utf8') return portal.Localizer.erp5_ui.gettext(state_id).encode('utf8')
psyco.bind(__call__) psyco.bind(__call__)
......
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