From: Fred L. D. Jr. <fd...@us...> - 2004-04-08 05:57:06
|
Update of /cvsroot/ht2html/ht2html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25079 Modified Files: PDOGenerator.py Log Message: make the sitelinks value easier to override in a subclass Index: PDOGenerator.py =================================================================== RCS file: /cvsroot/ht2html/ht2html/PDOGenerator.py,v retrieving revision 2.17 retrieving revision 2.18 diff -C2 -d -r2.17 -r2.18 *** PDOGenerator.py 12 Aug 2003 16:12:06 -0000 2.17 --- PDOGenerator.py 8 Apr 2004 05:43:55 -0000 2.18 *************** *** 23,41 **** - sitelinks = [ - ('%(rootdir)s/', 'Home'), - ('%(rootdir)s/search/', 'Search'), - ('%(rootdir)s/download/', 'Download'), - ('%(rootdir)s/doc/', 'Documentation'), - ('%(rootdir)s/Help.html', 'Help'), - ('%(rootdir)s/dev/', 'Developers'), - ('%(rootdir)s/community/', 'Community'), - ('%(rootdir)s/sigs/', 'SIGs'), - ] - - class PDOGenerator(Skeleton, Sidebar, Banner): AUTHOR = 'web...@py...' def __init__(self, file, rootdir, relthis): root, ext = os.path.splitext(file) --- 23,40 ---- class PDOGenerator(Skeleton, Sidebar, Banner): AUTHOR = 'web...@py...' + sitelinks = [ + ('%(rootdir)s/', 'Home'), + ('%(rootdir)s/search/', 'Search'), + ('%(rootdir)s/download/', 'Download'), + ('%(rootdir)s/doc/', 'Documentation'), + ('%(rootdir)s/Help.html', 'Help'), + ('%(rootdir)s/dev/', 'Developers'), + ('%(rootdir)s/community/', 'Community'), + ('%(rootdir)s/sigs/', 'SIGs'), + ] + def __init__(self, file, rootdir, relthis): root, ext = os.path.splitext(file) *************** *** 70,75 **** # sitelink_fixer = LinkFixer(f.myurl(), rootdir) ! sitelink_fixer.massage(sitelinks, self.__d, aboves=1) ! Banner.__init__(self, sitelinks) # grab a random banner from the pile s = random.choice(glob.glob("%(rootdir)s/pics/PyBanner*.gif" % --- 69,74 ---- # sitelink_fixer = LinkFixer(f.myurl(), rootdir) ! sitelink_fixer.massage(self.sitelinks, self.__d, aboves=1) ! Banner.__init__(self, self.sitelinks) # grab a random banner from the pile s = random.choice(glob.glob("%(rootdir)s/pics/PyBanner*.gif" % |