files updated for 0.5.0

svn: r405
This commit is contained in:
Don Allingham 2001-09-15 17:53:29 +00:00
parent 159cb9b7b8
commit 83be3f389d
9 changed files with 34 additions and 15 deletions

View File

@ -10,6 +10,8 @@ Version 0.5.0
the filter. the filter.
* New verification tool added to look for odd things in the * New verification tool added to look for odd things in the
database. database.
* Improvements in GEDCOM import, including handling some
Family Tree Maker pecularities.
Version 0.4.1 Version 0.4.1
* Tool/Report menus added to top level menu bar * Tool/Report menus added to top level menu bar

View File

@ -1,4 +1,4 @@
%define ver 0.4.1 %define ver 0.5.0
%define rel 1 %define rel 1
%define prefix /usr %define prefix /usr

View File

@ -2386,7 +2386,7 @@
<widget> <widget>
<class>GtkLabel</class> <class>GtkLabel</class>
<child_name>CList:title</child_name> <child_name>CList:title</child_name>
<name>attr_details</name> <name>attrib_details</name>
<label>Details</label> <label>Details</label>
<justify>GTK_JUSTIFY_CENTER</justify> <justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap> <wrap>False</wrap>

View File

@ -75,7 +75,7 @@ gtkrcFile = rootDir + os.sep + "gtkrc"
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
progName = "gramps" progName = "gramps"
version = "0.4.2pre" version = "0.5.0"
copyright = "(C) 2001 Donald N. Allingham" copyright = "(C) 2001 Donald N. Allingham"
authors = ["Donald N. Allingham"] authors = ["Donald N. Allingham"]
comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program that can be extended by using the Python programming language.") comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program that can be extended by using the Python programming language.")

View File

@ -5666,6 +5666,7 @@ Unknown
<name>entry1</name> <name>entry1</name>
<width>250</width> <width>250</width>
<can_focus>True</can_focus> <can_focus>True</can_focus>
<has_focus>True</has_focus>
<editable>True</editable> <editable>True</editable>
<text_visible>True</text_visible> <text_visible>True</text_visible>
<text_max_length>0</text_max_length> <text_max_length>0</text_max_length>

View File

@ -2903,7 +2903,7 @@ def export_callback(obj,plugin_function):
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
def import_callback(obj,plugin_function): def import_callback(obj,plugin_function):
plugin_function(database,active_person,update_display) plugin_function(database,active_person,tool_callback)
topWindow.set_title("Gramps - " + database.getSavePath()) topWindow.set_title("Gramps - " + database.getSavePath())
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -46,6 +46,7 @@ db = None
callback = None callback = None
glade_file = None glade_file = None
clear_data = 0 clear_data = 0
is_ftw = 0
photo_types = [ "jpeg", "bmp", "pict", "pntg", "tpic", "png", "gif", photo_types = [ "jpeg", "bmp", "pict", "pntg", "tpic", "png", "gif",
"tiff", "pcx" ] "tiff", "pcx" ]
@ -647,8 +648,14 @@ class GedcomParser:
self.parse_person_event(event,2) self.parse_person_event(event,2)
elif matches[1] == "EVEN": elif matches[1] == "EVEN":
event = Event() event = Event()
self.person.addEvent(event)
self.parse_person_event(event,2) self.parse_person_event(event,2)
if string.strip(event.getName()) == "SSN":
attr = Attribute()
attr.setType("Social Security Number")
attr.setValue(event.getDescription())
self.person.addAttribute(attr)
else:
self.person.addEvent(event)
else: else:
event = Event() event = Event()
try: try:
@ -930,17 +937,22 @@ class GedcomParser:
self.ignore_sub_junk(level+1) self.ignore_sub_junk(level+1)
elif matches[1] == "PLAC": elif matches[1] == "PLAC":
val = matches[2] val = matches[2]
place = None n = string.strip(event.getName())
for p in self.db.getPlaceMap().values(): if is_ftw and n in ["Occupation","Degree","SSN"]:
if val == p.get_title(): event.setDescription(val)
place = p self.ignore_sub_junk(level+1)
break
else: else:
place = Place() place = None
place.set_title(matches[2]) for p in self.db.getPlaceMap().values():
self.db.addPlace(place) if val == p.get_title():
event.setPlace(place) place = p
self.ignore_sub_junk(level+1) break
else:
place = Place()
place.set_title(matches[2])
self.db.addPlace(place)
event.setPlace(place)
self.ignore_sub_junk(level+1)
elif matches[1] == "CAUS": elif matches[1] == "CAUS":
info = matches[2] + self.parse_continue_data(level+1) info = matches[2] + self.parse_continue_data(level+1)
if note == "": if note == "":
@ -1168,6 +1180,8 @@ class GedcomParser:
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
def parse_header_source(self): def parse_header_source(self):
global is_ftw
while 1: while 1:
matches = self.get_next() matches = self.get_next()
@ -1177,6 +1191,8 @@ class GedcomParser:
elif matches[1] == "SOUR": elif matches[1] == "SOUR":
if self.created_obj.get_text() == "": if self.created_obj.get_text() == "":
self.update(self.created_obj,matches[2]) self.update(self.created_obj,matches[2])
if matches[2] == "FTW":
is_ftw = 1
elif matches[1] == "NAME": elif matches[1] == "NAME":
self.update(self.created_obj,matches[2]) self.update(self.created_obj,matches[2])
elif matches[1] == "VERS": elif matches[1] == "VERS":