CVS: ht2html PDOGenerator.py,2.17,2.18

"Fred L. Drake, Jr." <[email protected]> Wed, 07 Apr 2004 22:44:03 -0700
Newsgroups gmane.comp.web.ht2html.devel
Message-ID <[email protected]>
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 = '[email protected]'
  
      def __init__(self, file, rootdir, relthis):
          root, ext = os.path.splitext(file)
--- 23,40 ----
  
  
  class PDOGenerator(Skeleton, Sidebar, Banner):
      AUTHOR = '[email protected]'
  
+     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" %



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click