diff --git a/ChangeLog b/ChangeLog index 8297b405a..73cca81d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-08 Alex Roitman + * src/RelLib/_Location.py (set_county, get_county): Move into + LocationBase class. + * src/RelLib/_LocationBase.py (set_county, get_county): Move from + Location class. + 2006-10-07 Alex Roitman * src/Editors/_EditSourceRef.py (_cleanup_on_exit): Factor out cleanup into its own method (as in the parent class). diff --git a/src/RelLib/_Location.py b/src/RelLib/_Location.py index 7cf575e7c..61a76143d 100644 --- a/src/RelLib/_Location.py +++ b/src/RelLib/_Location.py @@ -86,11 +86,3 @@ class Location(SecondaryObject,LocationBase): def get_parish(self): """gets the religious parish name""" return self.parish - - def set_county(self,data): - """sets the county name of the Location object""" - self.county = data - - def get_county(self): - """returns the county name of the Location object""" - return self.county diff --git a/src/RelLib/_LocationBase.py b/src/RelLib/_LocationBase.py index 53e7173b7..0abd4d512 100644 --- a/src/RelLib/_LocationBase.py +++ b/src/RelLib/_LocationBase.py @@ -121,3 +121,11 @@ class LocationBase: def get_country(self): """returns the country name of the LocationBase object""" return self.country + + def set_county(self,data): + """sets the county name of the LocationBase object""" + self.county = data + + def get_county(self): + """returns the county name of the LocationBase object""" + return self.county