Contribution from Johan Gonqvist <johan.gronqvist@gmail.com>: NarrativeWeb links incorrect in windows. (#0001117)
svn: r8768
This commit is contained in:
parent
7cba49c1a4
commit
9d843c2f80
@ -1,3 +1,7 @@
|
||||
2007-07-23 Johan Gonqvist <johan.gronqvist@gmail.com>
|
||||
* src/plugins/NarrativeWeb.py:
|
||||
NarrativeWeb links incorrect in windows. (#0001117)
|
||||
|
||||
2007-07-23 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/IndivComplete.py:
|
||||
* src/plugins/Summary.py:
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2007 Donald N. Allingham
|
||||
# Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Pubilc License as published by
|
||||
@ -217,11 +218,11 @@ class BasePage:
|
||||
return of
|
||||
|
||||
def link_path(self,name,path):
|
||||
base = self.build_name("",name)
|
||||
path = "%s/%s/%s/%s" % (path,name[0],name[1],base)
|
||||
if os.sys.platform == "win32":
|
||||
path = path.lower()
|
||||
return path
|
||||
path = "%s/%s/%s" % (path,name[0],name[1])
|
||||
if os.sys.platform == "win32":
|
||||
path = path.lower()
|
||||
path = self.build_name(path,name)
|
||||
return path
|
||||
|
||||
def create_link_file(self,name,path):
|
||||
self.cur_name = self.link_path(name,path)
|
||||
|
Loading…
Reference in New Issue
Block a user