Commit ccd0a231 authored by Sebastien Robin's avatar Sebastien Robin

allow to customize the output of the asText method through a script found by _getTypeBasedMethod


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3757 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d5c9f1b4
......@@ -95,6 +95,9 @@ class Telephone(Coordinate, Base):
"""
Returns the telephone number in standard format
"""
script = self._getTypeBasedMethod('asText')
if script is not None:
return script()
text = '+'
if self.telephone_country != None:
text += self.telephone_country
......
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