From: Barry W. <bw...@us...> - 2002-11-01 15:27:25
|
Update of /cvsroot/ht2html/ht2html In directory usw-pr-cvs1:/tmp/cvs-serv26754 Modified Files: SelfGenerator.py Log Message: sitelinks: Rearrangement to two column layout. SelfGenerator: Instead of advertising my email address, advertise the mailing list. __init__(): Get rid of the "Email me" kludge. Index: SelfGenerator.py =================================================================== RCS file: /cvsroot/ht2html/ht2html/SelfGenerator.py,v retrieving revision 2.3 retrieving revision 2.4 diff -C2 -d -r2.3 -r2.4 *** SelfGenerator.py 27 Mar 2002 03:59:48 -0000 2.3 --- SelfGenerator.py 1 Nov 2002 15:27:18 -0000 2.4 *************** *** 14,21 **** sitelinks = [ ! ('index.html', 'Home'), ('http://www.python.org/', 'Python.Org'), - ('http://barry.wooz.org/', "Barry's home page"), ('http://sf.net/projects/ht2html', 'ht2html @ SourceForge'), ] --- 14,21 ---- sitelinks = [ ! ('index.html', 'Home'), ('http://www.python.org/', 'Python.Org'), ('http://sf.net/projects/ht2html', 'ht2html @ SourceForge'), + ('http://barry.wooz.org/', "Barry Warsaw's homepage"), ] *************** *** 23,28 **** class SelfGenerator(Skeleton, Sidebar, Banner): ! AUTHOR = 'Barry A. Warsaw' ! EMAIL = 'ba...@py...' def __init__(self, file, rootdir, relthis): --- 23,28 ---- class SelfGenerator(Skeleton, Sidebar, Banner): ! AUTHOR = 'The Developers' ! EMAIL = 'ht2...@li...' def __init__(self, file, rootdir, relthis): *************** *** 58,67 **** sitelink_fixer = LinkFixer(f.myurl(), rootdir) sitelink_fixer.massage(sitelinks, self.__d, aboves=1) ! Banner.__init__(self, sitelinks) ! # kludge! ! for i in range(len(p.sidebar)-1, -1, -1): ! if p.sidebar[i] == 'Email Us': ! p.sidebar[i] = 'Email me' ! break def get_title(self): --- 58,62 ---- sitelink_fixer = LinkFixer(f.myurl(), rootdir) sitelink_fixer.massage(sitelinks, self.__d, aboves=1) ! Banner.__init__(self, sitelinks, cols=2) def get_title(self): |