Commit 31f3201f authored by Romain Courteaud's avatar Romain Courteaud

Can now create _asText script for Address.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9390 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 160ff995
......@@ -72,6 +72,8 @@ class GeographicAddress(Coordinate, Base):
Returns the address as a complete formatted string
with street address, zip, city and region
"""
result = Coordinate.asText(self)
if result is None:
if country=='France' or country=='france' or country=='fr' :
return ('%s\n%s %s') % (self.getStreetAddress() or '',
self.getZipCode() or '', self.getCity() or '')
......
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