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

* src/GrampsDb/_ReadGedcom.py (func_person_attr): Typos.



svn: r6610
This commit is contained in:
Alex Roitman 2006-05-10 20:17:28 +00:00
parent 9fc80be5b0
commit 4f2b19a733
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-05-10 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py (func_person_attr): Typos.
2006-05-10 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: remove debug statement
* src/PeopleModel.py: use SearchFilter

View File

@ -2271,8 +2271,8 @@ class GedcomParser:
def func_person_attr(self,matches,state):
attr = RelLib.Attribute()
n = matches[3]
atype = self.gedattr.get(n,RelLib.Attribute.CUSTOM)
if atype == RelLib.Attribute.CUSTOM:
atype = self.gedattr.get(n,RelLib.AttributeType.CUSTOM)
if atype == RelLib.AttributeType.CUSTOM:
attr.set_type((atype,n))
else:
attr.set_type(atype)