Commit 2f6c9e60 authored by Jérome Perrin's avatar Jérome Perrin

prevent the display of "None" in the adress


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3541 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2028b01b
......@@ -117,9 +117,11 @@ city, zip code, region."""
with street address, zip, city and region
"""
if country=='France' or country=='france' or country=='fr' :
return ('%s\n%s %s') % (self.street_address, self.zip_code, self.city)
return ('%s\n%s %s') % (self.street_address or '',
self.zip_code or '', self.city or '')
else :
return ('%s\n%s %s') % (self.street_address, self.city, self.zip_code)
return ('%s\n%s %s') % (self.street_address or '',
self.city or '', self.zip_code or '')
security.declareProtected(Permissions.ModifyPortalContent, 'fromText')
def fromText(self, coordinate_text):
......
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