2006-09-23 Don Allingham <don@gramps-project.org>

* src/images/sources.svg: new icon
	* src/images/reports.svg: new icon
	* src/images/tools.svg: new icon
	* src/images/events.svg: new icon
	* src/images/place.svg: new icon
	* src/images/tools.svg: new icon
	* src/ViewManager.py: use new icons
	* src/gramps_main.py: register new icons

2006-09-22  Don Allingham  <don@gramps-project.org>
	* src/GrampsDb/_GrampsGEDDB.py: support for disabling transactions
	* src/GrampsDb/_GrampsXMLDB.py: support for disabling transactions
	* src/GrampsDb/_GrampsBSDDB.py: support for disabling transactions
	* src/GrampsDb/_GrampsDbBase.py: support for disabling transactions
	* src/GrampsDb/_ReadGedcom.py: check for IO Eror
	* src/ViewManager.py: display message if a portability problem is 
	detected
	* src/QuestionDialog.py: Add Warning dialog that can be disabled
	* src/DbLoader.py: Detect missing database problem
	* src/ArgHandler.py: support for disabling transactions
	* src/GrampsCfg.py: new config keys for transactions
	* src/Config/_GrampsConfigKeys.py: new config keys for transactions

2006-09-17  Don Allingham  <don@gramps-project.org>
	* src/ViewManager.py: handle missing database on autoload (#447)
	* src/ArgHandler.py: handle missing database on autoload (#447)
	* src/DbLoader.py: handle missing database on autoload (#447)
	* src/Makefile.am: remove uninstalled packages from makefile
	* src/GrampsDb/_ReadXML.py: place vs. address changes
	* src/GrampsDb/_WriteXML.py: place vs. address changes
	* src/GrampsDb/_EditPlace.py: place vs. address changes
	* src/Editors/_EditPlace.py: place vs. address changes
	* src/Editors/_EditLocation.py: place vs. address changes
	* src/RelLib/_Address.py: place vs. address changes
	* src/RelLib/_LocationBase.py: place vs. address changes
	* src/RelLib/_Location.py: place vs. address changes
	* src/DisplayTabs/_LocationModel.py: place vs. address changes
	* src/DisplayTabs/_LocationEmbedList.py: place vs. address changes
	* src/glade/gramps.glade: place vs. address changes



svn: r7325
This commit is contained in:
Don Allingham
2006-09-24 04:37:59 +00:00
parent bc78ab8087
commit fe8b4e1839
39 changed files with 3539 additions and 640 deletions

View File

@@ -55,26 +55,21 @@ class Address(SecondaryObject,PrivacyBase,SourceBase,NoteBase,DateBase,
DateBase.__init__(self,source)
LocationBase.__init__(self,source)
if source:
self.street = source.street
else:
self.street = ""
def serialize(self):
return (PrivacyBase.serialize(self),
SourceBase.serialize(self),
NoteBase.serialize(self),
DateBase.serialize(self),
self.city,self.state,
self.country,self.postal,self.phone,self.street)
LocationBase.serialize(self))
def unserialize(self,data):
(privacy,source_list,note,date,self.city,self.state,
self.country,self.postal,self.phone,self.street) = data
PrivacyBase.unserialize(self,privacy)
SourceBase.unserialize(self,source_list)
NoteBase.unserialize(self,note)
DateBase.unserialize(self,date)
(privacy, source_list, note, date, location) = data
PrivacyBase.unserialize(self, privacy)
SourceBase.unserialize(self, source_list)
NoteBase.unserialize(self, note)
DateBase.unserialize(self, date)
LocationBase.unserialize(self, location)
return self
def get_text_data_list(self):
@@ -84,9 +79,7 @@ class Address(SecondaryObject,PrivacyBase,SourceBase,NoteBase,DateBase,
@return: Returns the list of all textual attributes of the object.
@rtype: list
"""
return [self.street] + LocationBase.get_text_data_list(self)
#return [self.street,self.city,self.state,self.country,
# self.postal,self.phone,self.get_date()]
return LocationBase.get_text_data_list(self)
def get_text_data_child_list(self):
"""
@@ -109,11 +102,3 @@ class Address(SecondaryObject,PrivacyBase,SourceBase,NoteBase,DateBase,
@rtype: list
"""
return self.source_list
def set_street(self,val):
"""sets the street portion of the Address"""
self.street = val
def get_street(self):
"""returns the street portion of the Address"""
return self.street

View File

@@ -55,17 +55,15 @@ class Location(SecondaryObject,LocationBase):
LocationBase.__init__(self,source)
if source:
self.parish = source.parish
self.county = source.county
else:
self.parish = ""
self.county = ""
def serialize(self):
return (LocationBase.serialize(self),self.parish,self.county)
return (LocationBase.serialize(self),self.parish)
def unserialize(self,data):
(lb,self.parish,self.county) = data
LocationBase.unserialize(self,lb)
(lb, self.parish) = data
LocationBase.unserialize(self, lb)
return self
def get_text_data_list(self):
@@ -75,7 +73,7 @@ class Location(SecondaryObject,LocationBase):
@return: Returns the list of all textual attributes of the object.
@rtype: list
"""
return [self.parish,self.county] + LocationBase.get_text_data_list()
return [self.parish] + LocationBase.get_text_data_list()
def is_empty(self):
return not self.city and not self.county and not self.state and \

View File

@@ -40,23 +40,29 @@ class LocationBase:
copying from the source object if it exists.
"""
if source:
self.street = source.street
self.city = source.city
self.county = source.county
self.state = source.state
self.country = source.country
self.postal = source.postal
self.phone = source.phone
else:
self.street = ""
self.city = ""
self.county = ""
self.state = ""
self.country = ""
self.postal = ""
self.phone = ""
def serialize(self):
return (self.city,self.state,self.country,self.postal,self.phone)
return (self.street, self.city, self.county, self.state,
self.country, self.postal, self.phone)
def unserialize(self,data):
(self.city,self.state,self.country,self.postal,self.phone) = data
(self.street, self.city, self.county, self.state, self.country,
self.postal, self.phone) = data
return self
def get_text_data_list(self):
@@ -68,6 +74,14 @@ class LocationBase:
"""
return [self.city,self.state,self.country,self.postal,self.phone]
def set_street(self,val):
"""sets the street portion of the Location"""
self.street = val
def get_street(self):
"""returns the street portion of the Location"""
return self.street
def set_city(self,data):
"""sets the city name of the LocationBase object"""
self.city = data