* src/GrampsDbUtils/_WriteGedcom.py: Generate LONG and LATI

* src/docgen/Makefile.am: replace LPRDoc with GtkPrint
	
2007-08-24  Don Allingham  <don@gramps-project.org>


svn: r8860
This commit is contained in:
Don Allingham 2007-08-24 21:54:06 +00:00
parent c31914c057
commit 94aa96e72d
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-08-24 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_WriteGedcom.py: Generate LONG and LATI
* src/docgen/Makefile.am: replace LPRDoc with GtkPrint
2007-08-24 Don Allingham <don@gramps-project.org>
* src/Config/_GrampsConfigKeys.py: added coment on how do add a new
key

View File

@ -1281,6 +1281,12 @@ class GedcomWriter(UpdateCallback):
def write_place(self, place, level):
place_name = place.get_title()
self.__writeln(level, "PLAC", place_name.replace('\r', ' '))
long = place.get_longitude()
lat = place.get_latitude()
if long and lat:
self.__writeln(level+1, "MAP")
self.__writeln(level+2, 'LATI', lat)
self.__writeln(level+2, 'LONG', long)
#-------------------------------------------------------------------------
#

View File

@ -18,7 +18,7 @@ docgen_PYTHON = \
PSDrawDoc.py\
RTFDoc.py\
SvgDrawDoc.py\
LPRDoc.py
GtkPrint.py
# Clean up all the byte-compiled files
MOSTLYCLEANFILES = *pyc *pyo