From fd73514004780b5552b58523e028a7f874b70aac Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 30 Oct 2010 22:17:21 +0000 Subject: [PATCH] Update is_empty method with street and locality svn: r16088 --- src/gen/lib/location.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gen/lib/location.py b/src/gen/lib/location.py index 06d855a71..d32d35c2c 100644 --- a/src/gen/lib/location.py +++ b/src/gen/lib/location.py @@ -43,9 +43,9 @@ class Location(SecondaryObject, LocationBase): """ Provide information about a place. - The data including city, county, state, and country. + The data including street, locality, city, county, state, and country. Multiple Location objects can represent the same place, since names - of citys, countys, states, and even countries can change with time. + of cities, counties, states, and even countries can change with time. """ def __init__(self, source=None): @@ -107,8 +107,9 @@ class Location(SecondaryObject, LocationBase): pass def is_empty(self): - return not self.city and not self.county and not self.state and \ - not self.country and not self.postal and not self.phone + return not self.street and not self.locality and not self.city and \ + not self.county and not self.state and not self.country and \ + not self.postal and not self.phone def set_parish(self, data): """Set the religious parish name."""