Commit e8d915a0 authored by Romain Courteaud's avatar Romain Courteaud

Do not forget to return the result.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9393 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 001122d3
...@@ -75,11 +75,12 @@ class GeographicAddress(Coordinate, Base): ...@@ -75,11 +75,12 @@ class GeographicAddress(Coordinate, Base):
result = Coordinate.asText(self) result = Coordinate.asText(self)
if result is None: if result is None:
if country=='France' or country=='france' or country=='fr' : if country=='France' or country=='france' or country=='fr' :
return ('%s\n%s %s') % (self.getStreetAddress() or '', result = ('%s\n%s %s') % (self.getStreetAddress() or '',
self.getZipCode() or '', self.getCity() or '') self.getZipCode() or '', self.getCity() or '')
else : else :
return ('%s\n%s %s') % (self.getStreetAddress() or '', result = ('%s\n%s %s') % (self.getStreetAddress() or '',
self.getCity() or '', self.getZipCode() or '') self.getCity() or '', self.getZipCode() or '')
return result
security.declareProtected(Permissions.ModifyPortalContent, 'fromText') security.declareProtected(Permissions.ModifyPortalContent, 'fromText')
def fromText(self, coordinate_text): 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