From 6f2f4bd8b31b04174f0ce6ead2e53dcb6b7293c8 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 9 Oct 2006 02:12:10 +0000 Subject: [PATCH] 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. svn: r7371 --- gramps2/ChangeLog | 6 ++++++ gramps2/src/RelLib/_Location.py | 8 -------- gramps2/src/RelLib/_LocationBase.py | 8 ++++++++ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 8297b405a..73cca81d3 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/RelLib/_Location.py b/gramps2/src/RelLib/_Location.py index 7cf575e7c..61a76143d 100644 --- a/gramps2/src/RelLib/_Location.py +++ b/gramps2/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/gramps2/src/RelLib/_LocationBase.py b/gramps2/src/RelLib/_LocationBase.py index 53e7173b7..0abd4d512 100644 --- a/gramps2/src/RelLib/_LocationBase.py +++ b/gramps2/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