Update of /cvsroot/ht2html/ht2html
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4410
Modified Files:
DocsPDOGenerator.py
Log Message:
tighten things up a bit; change the banner (still not right)
Index: DocsPDOGenerator.py
===================================================================
RCS file: /cvsroot/ht2html/ht2html/DocsPDOGenerator.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DocsPDOGenerator.py 8 Apr 2004 05:56:49 -0000 1.2
--- DocsPDOGenerator.py 8 Apr 2004 17:59:06 -0000 1.3
***************
*** 17,39 ****
]
- def __init__(self, file, rootdir, relthis):
- PDOGenerator.__init__(self, file, rootdir, relthis)
- self._Banner__cols = 2
-
def get_banner(self):
! banner = PDOGenerator.get_banner(self)
! banner = banner.replace("</tr>", SEARCHBOX + "</tr>", 1)
! return banner
! SEARCHBOX = '''
! <td rowspan="2" id="search" align="right" width="30%">
<form method="get" action="http://www.google.com/search">
Search: <input id="q" name="q" size="30" value="">
! <input type="hidden" id="domains" name="domains" value="docs.python.org">
! <input type="hidden" id="sitesearch" name="sitesearch" value="docs.python.org">
! <input type="hidden" id="sourceid" name="sourceid" value="google-search">
! <input type="submit" id="submit" name="submit" value="submit">
</form>
!
! </td>'''
--- 17,37 ----
]
def get_banner(self):
! return SEARCHBOX
! SEARCHBOX = \
! '''<!-- start of search bar -->
! <div id="search">
<form method="get" action="http://www.google.com/search">
Search: <input id="q" name="q" size="30" value="">
! <input type="hidden" id="domains" name="domains"
! value="docs.python.org" />
! <input type="hidden" id="sitesearch" name="sitesearch"
! value="docs.python.org" />
! <input type="hidden" id="sourceid" name="sourceid"
! value="google-search" />
! <input type="submit" id="submit" name="submit" value="submit" />
</form>
! </div><!-- end of search bar -->
! '''
|