2006-10-08 Alex Roitman <shura@gramps-project.org>

* 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
This commit is contained in:
Alex Roitman 2006-10-09 02:12:10 +00:00
parent e2ae267d98
commit fae1b7dfb2
3 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2006-10-08 Alex Roitman <shura@gramps-project.org>
* 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 <shura@gramps-project.org>
* src/Editors/_EditSourceRef.py (_cleanup_on_exit): Factor out
cleanup into its own method (as in the parent class).

View File

@ -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

View File

@ -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