Contribution from Johan Gonqvist <johan.gronqvist@gmail.com>: Make URL handling on win32 work as in NarrativeWeb.py. (#0001087)

svn: r8763
This commit is contained in:
Brian Matherly 2007-07-24 03:04:49 +00:00
parent afa6670eb6
commit 77e7e9b6e4
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-07-23 Johan Gonqvist <johan.gronqvist@gmail.com>
* src/plugins/NarrativeWeb.py:
Make URL handling on win32 work as in NarrativeWeb.py. (#0001087)
2007-07-23 Don Allingham <don@gramps-project.org>
* src/plugins/ExtractCity.py: fix encoding

View File

@ -2,6 +2,7 @@
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Cipyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
# Contributions by Lorenzo Cappelletti <lorenzo.cappelletti@email.it>
#
# This program is free software; you can redistribute it and/or modify
@ -454,7 +455,10 @@ just use iconv:
url = ""
if self.includeurl:
h = person_handle
url = ', URL="ppl/%s/%s/%s.html", ' % (h[0],h[1],h)
dirpath = "ppl/%s/%s" % (h[0], h[1])
if os.sys.platform == "win32":
dirpath = dirpath.lower()
url = ', URL="%s/%s.html", ' % (dirpath,h)
buffer += '"p%s" [label="%s", %s%s];\n' % (p_id, label, style, url)
# Output families where person is a parent