From 1feb641e1287be8fd91e294a9c828c08033fb2f4 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 5 Aug 2001 20:40:36 +0000 Subject: [PATCH] fixed problem with addresses in XML svn: r296 --- gramps/src/WriteXML.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/src/WriteXML.py b/gramps/src/WriteXML.py index cd9e83035..1d2ac8da0 100644 --- a/gramps/src/WriteXML.py +++ b/gramps/src/WriteXML.py @@ -291,6 +291,9 @@ def exportData(database, filename, callback): write_line(g,"uid",person.getPafUid(),3) write_line(g,"nick",person.getNickName(),3) + pos = person.getPosition() + if pos != None: + g.write(' %d %d\n'% pos) dump_my_event(g,"Birth",person.getBirth(),3) dump_my_event(g,"Death",person.getDeath(),3) for event in person.getEventList(): @@ -310,7 +313,7 @@ def exportData(database, filename, callback): if len(person.getAddressList()) > 0: for address in person.getAddressList(): - g.write(' \n' % conf_priv(address)) + g.write(' \n' % conf_priv(address)) write_line(g,"date",address.getDateObj().getSaveDate(),4) write_line(g,"street",address.getStreet(),4) write_line(g,"city",address.getCity(),4)