From: Barry W. <bw...@us...> - 2002-10-29 22:43:07
|
Update of /cvsroot/ht2html/ht2html In directory usw-pr-cvs1:/tmp/cvs-serv21604 Modified Files: PDOGenerator.py Log Message: Add a favicon and a copyright notice. Index: PDOGenerator.py =================================================================== RCS file: /cvsroot/ht2html/ht2html/PDOGenerator.py,v retrieving revision 2.7 retrieving revision 2.8 diff -C2 -d -r2.7 -r2.8 *** PDOGenerator.py 8 Apr 2002 18:45:09 -0000 2.7 --- PDOGenerator.py 29 Oct 2002 22:43:04 -0000 2.8 *************** *** 3,6 **** --- 3,7 ---- import os + import time import posixpath import whrandom *************** *** 47,50 **** --- 48,57 ---- src="%(rootdir)s/pics/PythonPoweredSmall.gif"></center> ''' % self.__d)) + p.sidebar.append(BLANKCELL) + copyright = self.__parser.get('copyright', '%d' % + time.localtime()[0]) + p.sidebar.append((None, '© ' + copyright)) + p.sidebar.append(('http://www.python.org/psf/', + 'Python Software Foundation')) self.__linkfixer.massage(p.sidebar, self.__d) Sidebar.__init__(self, p.sidebar) *************** *** 65,74 **** def get_meta(self): s1 = Skeleton.get_meta(self) s2 = self.__parser.get('meta', '') if s1 and s2: ! return s1 + "\n" + s2 else: ! return s1 or s2 def get_style(self): --- 72,82 ---- def get_meta(self): + favicon = '\n<link rel="SHORTCUT ICON" href="pics/pyfav.gif">' s1 = Skeleton.get_meta(self) s2 = self.__parser.get('meta', '') if s1 and s2: ! return s1 + "\n" + s2 + favicon else: ! return (s1 or s2) + favicon def get_style(self): |