From 77e7e9b6e481bb8280511c2ce226cda0fc62c593 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 24 Jul 2007 03:04:49 +0000 Subject: [PATCH] Contribution from Johan Gonqvist : Make URL handling on win32 work as in NarrativeWeb.py. (#0001087) svn: r8763 --- ChangeLog | 4 ++++ src/plugins/GraphViz.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4481ed8c4..e5e536ec1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-07-23 Johan Gonqvist + * src/plugins/NarrativeWeb.py: + Make URL handling on win32 work as in NarrativeWeb.py. (#0001087) + 2007-07-23 Don Allingham * src/plugins/ExtractCity.py: fix encoding diff --git a/src/plugins/GraphViz.py b/src/plugins/GraphViz.py index 0aa00231b..fdcfdbef0 100644 --- a/src/plugins/GraphViz.py +++ b/src/plugins/GraphViz.py @@ -2,6 +2,7 @@ # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham +# Cipyright (C) 2007 Johan Gonqvist # Contributions by Lorenzo Cappelletti # # 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