Changeset 3055 for pykota/trunk/cgi-bin
- Timestamp:
- 11/12/06 17:16:49 (18 years ago)
- Location:
- pykota/trunk/cgi-bin
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/dumpykota.cgi
r3032 r3055 35 35 from pykota.cgifuncs import getLanguagePreference, getCharsetPreference 36 36 37 header = """Content-type: text/html 38 39 <?xml version="1.0" encoding="%s"?> 37 header = """Content-type: text/html;charset=%s 38 40 39 <html> 41 40 <head> … … 70 69 </head> 71 70 <body> 71 <!-- %s %s --> 72 72 <p> 73 73 <form action="dumpykota.cgi" method="GET" name="mainform" onsubmit="return checkvalues()"> … … 124 124 """Displays the dumper interface.""" 125 125 global header, footer 126 print header % (self.getCharset(), _("PyKota Data Dumper"), \ 126 print header % (self.charset, _("PyKota Data Dumper"), \ 127 self.language, self.charset, \ 127 128 self.config.getLogoLink(), \ 128 129 self.config.getLogoURL(), version.__version__, \ … … 228 229 229 230 if __name__ == "__main__" : 230 os.environ["LC_ALL"] = getLanguagePreference() 231 admin = PyKotaDumperGUI(lang=os.environ["LC_ALL"], charset=getCharsetPreference()) 231 admin = PyKotaDumperGUI(lang=getLanguagePreference(), charset=getCharsetPreference()) 232 232 admin.deferredInit() 233 233 admin.form = cgi.FieldStorage() -
pykota/trunk/cgi-bin/printquota.cgi
r3050 r3055 37 37 from pykota.cgifuncs import getLanguagePreference, getCharsetPreference 38 38 39 header = """Content-type: text/html 40 41 <?xml version="1.0" encoding="%s"?> 39 header = """Content-type: text/html;charset=%s 40 42 41 <html> 43 42 <head> … … 46 45 </head> 47 46 <body> 47 <!-- %s %s --> 48 48 <p> 49 49 <form action="printquota.cgi" method="POST"> … … 97 97 """Displays the administrative interface.""" 98 98 global header, footer 99 print header % (self.getCharset(), _("PyKota Reports"), \ 99 print header % (self.charset, _("PyKota Reports"), \ 100 self.language, self.charset, \ 100 101 self.config.getLogoLink(), \ 101 102 self.config.getLogoURL(), version.__version__, \ … … 287 288 288 289 if __name__ == "__main__" : 289 os.environ["LC_ALL"] = getLanguagePreference() 290 admin = PyKotaReportGUI(lang=os.environ["LC_ALL"], charset=getCharsetPreference()) 290 admin = PyKotaReportGUI(lang=getLanguagePreference(), charset=getCharsetPreference()) 291 291 admin.deferredInit() 292 292 admin.form = cgi.FieldStorage() -
pykota/trunk/cgi-bin/pykotme.cgi
r2909 r3055 37 37 38 38 39 header = """Content-type: text/html 40 41 <?xml version="1.0" encoding="%s"?> 39 header = """Content-type: text/html;charset=%s 40 42 41 <html> 43 42 <head> … … 46 45 </head> 47 46 <body> 47 <!-- %s %s --> 48 48 <p> 49 49 <form action="pykotme.cgi" method="POST" enctype="multipart/form-data"> … … 97 97 """Displays the administrative interface.""" 98 98 global header, footer 99 print header % (self.getCharset(), _("PyKota Quotes"), \ 99 print header % (self.charset, _("PyKota Quotes"), \ 100 self.language, self.charset, \ 100 101 self.config.getLogoLink(), \ 101 102 self.config.getLogoURL(), version.__version__, \ … … 187 188 188 189 if __name__ == "__main__" : 189 os.environ["LC_ALL"] = getLanguagePreference() 190 admin = PyKotMeGUI(lang=os.environ["LC_ALL"], charset=getCharsetPreference()) 190 admin = PyKotMeGUI(lang=getLanguagePreference(), charset=getCharsetPreference()) 191 191 admin.deferredInit() 192 192 admin.form = cgi.FieldStorage()