[Python-checkins] CVS: python/nondist/peps style.css,NONE,1.1 pep2html.py,1.5,1.6

Fred L. Drake python-dev@python.org
2000年7月27日 11:44:47 -0700


Update of /cvsroot/python/python/nondist/peps
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26987
Modified Files:
	pep2html.py 
Added Files:
	style.css 
Log Message:
Further presentation adjustments, use a style sheet for some things.
--- NEW FILE ---
.navigation { background: #99ccff;
 border: thin solid #ffffff;
 width: 100%;
 padding: 4pt;
 }
.header th:after { content: " " }
Index: pep2html.py
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep2html.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** pep2html.py	2000年07月26日 04:14:30	1.5
--- pep2html.py	2000年07月27日 18:44:44	1.6
***************
*** 60,76 ****
 title = "PEP " + pep + " -- " + title
 if title:
! fo.write(" <title>%s</title>\n" % cgi.escape(title))
 fo.write("</head>\n")
 # body
! fo.write('<body bgcolor="white">\n')
! fo.write('[<a href="../">home</a>]\n')
 if os.path.basename(infile) != "pep-0000.txt":
! fo.write('[<a href=".">index</a>]\n')
! fo.write('<hr />\n<table border="0">\n')
 for k, v in header:
 fo.write(" <tr><th align='right'>%s:</th><td>%s</td></tr>\n"
 % (cgi.escape(k), cgi.escape(v)))
 title = 0
! fo.write("</table>\n<hr />\n<pre>")
 while 1:
 line = fi.readline()
--- 60,81 ----
 title = "PEP " + pep + " -- " + title
 if title:
! fo.write(" <title>%s</title>\n"
! ' <link rel="STYLESHEET" href="style.css">\n'
! % cgi.escape(title))
 fo.write("</head>\n")
 # body
! fo.write('<body bgcolor="white">\n'
! '<div class="navigation">\n')
! fo.write('[<b><a href="../">home</a></b>]\n')
 if os.path.basename(infile) != "pep-0000.txt":
! fo.write('[<b><a href=".">index</a></b>]\n')
! fo.write('</div>\n'
! '<div class="header">\n<table border="0">\n')
 for k, v in header:
 fo.write(" <tr><th align='right'>%s:</th><td>%s</td></tr>\n"
 % (cgi.escape(k), cgi.escape(v)))
 title = 0
! fo.write("</table>\n</div>\n<hr />\n"
! "<pre>")
 while 1:
 line = fi.readline()
***************
*** 111,115 ****
 
 if update:
! os.system("scp pep-*.html " + username + HOST + ":" + HDIR)
 os.system("ssh " + username + HOST + " chmod 664 " + HDIR + "/*")
 
--- 116,120 ----
 
 if update:
! os.system("scp pep-*.html style.css " + username + HOST + ":" + HDIR)
 os.system("ssh " + username + HOST + " chmod 664 " + HDIR + "/*")
 

AltStyle によって変換されたページ (->オリジナル) /