* src/edit_person.glade: Add postal code fields

* src/dialog.glade: Add postal code and phone fields
* src/places.glade: Add postal code
* src/WriteXML.py: Add support for new place and postal code fields
* src/GrampsParser.py: Add support for new place and postal code fields


svn: r2479
This commit is contained in:
Don Allingham
2003-12-09 06:00:51 +00:00
parent f465ee3109
commit 1ef8e7a9e1
6 changed files with 270 additions and 24 deletions

View File

@@ -91,6 +91,8 @@ class EditPlace:
self.parish = self.top_window.get_widget("parish")
self.county = self.top_window.get_widget("county")
self.state = self.top_window.get_widget("state")
self.phone = self.top_window.get_widget("phone")
self.postal = self.top_window.get_widget("postal")
self.country = self.top_window.get_widget("country")
self.longitude = self.top_window.get_widget("longitude")
self.latitude = self.top_window.get_widget("latitude")
@@ -113,6 +115,8 @@ class EditPlace:
self.loc_city = self.top_window.get_widget("loc_city")
self.loc_county = self.top_window.get_widget("loc_county")
self.loc_state = self.top_window.get_widget("loc_state")
self.loc_postal = self.top_window.get_widget("loc_postal")
self.loc_phone = self.top_window.get_widget("loc_phone")
self.loc_parish = self.top_window.get_widget("loc_parish")
self.loc_country = self.top_window.get_widget("loc_country")
@@ -132,6 +136,8 @@ class EditPlace:
self.city.set_text(mloc.get_city())
self.county.set_text(mloc.get_county())
self.state.set_text(mloc.get_state())
self.phone.set_text(mloc.get_phone())
self.postal.set_text(mloc.get_postal_code())
self.parish.set_text(mloc.get_parish())
self.country.set_text(mloc.get_country())
self.longitude.set_text(place.get_longitude())
@@ -280,6 +286,8 @@ class EditPlace:
self.set(self.city,mloc.get_city,mloc.set_city)
self.set(self.parish,mloc.get_parish,mloc.set_parish)
self.set(self.state,mloc.get_state,mloc.set_state)
self.set(self.phone,mloc.get_phone,mloc.set_phone)
self.set(self.postal,mloc.get_postal_code,mloc.set_postal_code)
self.set(self.county,mloc.get_county,mloc.set_county)
self.set(self.country,mloc.get_country,mloc.set_country)
self.set(self.title,self.place.get_title,self.place.set_title)
@@ -381,6 +389,8 @@ class EditPlace:
self.loc_city.set_text('')
self.loc_county.set_text('')
self.loc_state.set_text('')
self.loc_postal.set_text('')
self.loc_phone.set_text('')
self.loc_parish.set_text('')
self.loc_country.set_text('')
else:
@@ -390,6 +400,8 @@ class EditPlace:
self.loc_city.set_text(loc.get_city())
self.loc_county.set_text(loc.get_county())
self.loc_state.set_text(loc.get_state())
self.loc_postal.set_text(loc.get_postal_code())
self.loc_phone.set_text(loc.get_phone())
self.loc_parish.set_text(loc.get_parish())
self.loc_country.set_text(loc.get_country())