Commit 3baaebc9 authored by Kevin Deldycke's avatar Kevin Deldycke

Better text rendering


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2515 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad9524cf
......@@ -132,9 +132,15 @@ Mobile Phone, Fax, Remote Access, etc.)."""
"""
Returns the telephone number in standard format
"""
text = "+%s(0)%s-%s" % (self.telephone_country
, self.telephone_area
, self.telephone_number)
text = '+'
if self.telephone_country != None:
text += self.telephone_country
text += '(0)'
if self.telephone_area != None:
text += self.telephone_area
text += '-'
if self.telephone_number != None:
text += self.telephone_number
if text == '+(0)-' :
return ''
else:
......
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