amandasaurus / gedcompy

Python library to parse and work with GEDCOM (geneology/family tree) files
GNU General Public License v3.0
39 stars 18 forks source link

Multiplenames #6

Closed chrrrisw closed 9 years ago

chrrrisw commented 9 years ago

Changed dunder-getattr to return a list if more than one value. The 'name' property now looks at whether the name is singular or a list. If it's a list, iterates through them to find the preferred name. Also added an 'aka' property to return the list of other names. Could perhaps refactor the Element to tuple handling into a separate utility function. I'm not certain if the change to dunder-getattr will break other tags in a more complex example (not sure what other tags can be repeated in this way). Cheers, Chris.

amandasaurus commented 9 years ago

thanks