Previous fix for bug#4696 broke NarrativeWeb. I now have a fix that solves both of them now. The missing images and icon are now there.
svn: r16779
This commit is contained in:
parent
f6b9e2884d
commit
91ca1981ac
@ -5846,8 +5846,10 @@ class NavWebReport(Report):
|
||||
if 0 < self.copyright <= len(_CC):
|
||||
imgs += [CSS["Copyright"]["filename"]]
|
||||
|
||||
# include GRAMPS favicon
|
||||
# we need the blank image gif neede by behaviour.css
|
||||
# copy Gramps favorite icon #2
|
||||
imgs += [CSS["favicon2"]["filename"]]
|
||||
|
||||
# we need the blank image gif needed by behaviour.css
|
||||
# add the document.png file for media other than photos
|
||||
imgs += CSS["All Images"]["images"]
|
||||
|
||||
|
@ -347,10 +347,10 @@ class WebCalReport(Report):
|
||||
# copy copyright image
|
||||
# the proper way would be to call "filename", but it is NOT working...
|
||||
if 0 < self.copy <= len(_CC):
|
||||
imgs += CSS["Copyright"]["images"]
|
||||
imgs += [CSS["Copyright"]["filename"]]
|
||||
|
||||
# copy Gramps favicon #2
|
||||
imgs += CSS["favicon2"]["images"]
|
||||
imgs += [CSS["favicon2"]["filename"]]
|
||||
|
||||
for from_path in imgs:
|
||||
fdir, fname = os.path.split(from_path)
|
||||
|
@ -92,7 +92,7 @@ def load_on_reg(dbstate, uistate, plugin):
|
||||
# no style sheet option
|
||||
["No style sheet",1, _("No style sheet"), [], None, [], []],
|
||||
|
||||
# ancestor tree style sheet
|
||||
# ancestor tree style sheet and its images
|
||||
["ancestortree", 0, "ancestortree",
|
||||
os.path.join(dir, "css", "ancestortree.css"), None,
|
||||
[os.path.join(dir, "images", "Web_Gender_Female.png"),
|
||||
@ -100,7 +100,7 @@ def load_on_reg(dbstate, uistate, plugin):
|
||||
|
||||
# media reference regions style sheet
|
||||
["behaviour", 0, "Behaviour",
|
||||
os.path.join(dir, "css", 'behaviour.css'), None, [], []],
|
||||
os.path.join(dir, "css", 'behaviour.css'), None, [], []],
|
||||
|
||||
# mapstraction style sheet for NarrativeWeb place maps
|
||||
["mapstraction", 0, "mapstraction",
|
||||
@ -146,12 +146,12 @@ def load_on_reg(dbstate, uistate, plugin):
|
||||
os.path.join(dir, "images", "document.png")], []],
|
||||
|
||||
# Gramps Fav icon #2
|
||||
["favicon2", 0, "favicon2", [], None,
|
||||
[os.path.join(dir, "images", "favicon2.ico")], []],
|
||||
["favicon2", 0, "favicon2",
|
||||
os.path.join(dir, "images", "favicon2.ico"), None, [], []],
|
||||
|
||||
# copyright image
|
||||
['Copyright', 0, 'Copyright', [], None,
|
||||
[os.path.join(dir, "images", "somerights20.gif")], []],
|
||||
['Copyright', 0, 'Copyright',
|
||||
os.path.join(dir, "images", "somerights20.gif"), None, [], []],
|
||||
|
||||
# document image in case the media object is not an image
|
||||
['Document', 0, 'Document', os.path.join(dir, "images", "document.png"), None, [], []],
|
||||
|
Loading…
Reference in New Issue
Block a user