2007-09-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>

* src/plugins/WebCal.py:
	* src/plugins/NarrativeWeb.py:
	Change const.image_dir to uppercase const.IMAGE_DIR


svn: r8998
This commit is contained in:
Zsolt Foldvari 2007-09-23 17:18:47 +00:00
parent 64a0e59955
commit b42877e41b
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-09-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/plugins/WebCal.py:
* src/plugins/NarrativeWeb.py:
Change const.image_dir to uppercase const.IMAGE_DIR
2007-09-20 Benny Malengier <benny.malengier@gramps-project.org> 2007-09-20 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/MarkerReport.py: localize fixed markers, issue #1137 * src/plugins/MarkerReport.py: localize fixed markers, issue #1137

View File

@ -2428,11 +2428,11 @@ class WebReport(Report):
# Copy the Creative Commons icon if the a Creative Commons # Copy the Creative Commons icon if the a Creative Commons
# license is requested # license is requested
if 0 < self.copyright < 7: if 0 < self.copyright < 7:
from_path = os.path.join(const.image_dir,"somerights20.gif") from_path = os.path.join(const.IMAGE_DIR,"somerights20.gif")
to_path = os.path.join("images","somerights20.gif") to_path = os.path.join("images","somerights20.gif")
self.store_file(archive,self.target_path,from_path,to_path) self.store_file(archive,self.target_path,from_path,to_path)
from_path = os.path.join(const.image_dir,"document.png") from_path = os.path.join(const.IMAGE_DIR,"document.png")
to_path = os.path.join("images","document.png") to_path = os.path.join("images","document.png")
self.store_file(archive,self.target_path,from_path,to_path) self.store_file(archive,self.target_path,from_path,to_path)

View File

@ -403,7 +403,7 @@ class WebReport(Report):
of.write('alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a></p>\n') of.write('alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a></p>\n')
if self.copy > 0 and self.copy <= 6: if self.copy > 0 and self.copy <= 6:
text = _cc[self.copy-1] text = _cc[self.copy-1]
from_path = os.path.join(const.image_dir,"somerights20.gif") from_path = os.path.join(const.IMAGE_DIR,"somerights20.gif")
shutil.copyfile(from_path,os.path.join(self.html_dir,"somerights20.gif")) shutil.copyfile(from_path,os.path.join(self.html_dir,"somerights20.gif"))
else: else:
text = "&copy; %s %s" % (time.localtime()[0], author) text = "&copy; %s %s" % (time.localtime()[0], author)