- Timestamp:
- 12/04/06 00:10:06 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/cgifuncs.py
r3055 r3120 27 27 languages = os.environ.get("HTTP_ACCEPT_LANGUAGE", "") 28 28 langs = [l.strip().split(';')[0] for l in languages.split(",")] 29 sys.stderr.write("Languages preferences : %s\n" % langs)29 #sys.stderr.write("Languages preferences : %s\n" % langs) 30 30 return langs[0].replace("-", "_") 31 31 … … 34 34 charsets = os.environ.get("HTTP_ACCEPT_CHARSET", "UTF-8") 35 35 charsets = [l.strip().split(';')[0] for l in charsets.split(",")] 36 sys.stderr.write("Charsets preferences : %s\n" % charsets)36 #sys.stderr.write("Charsets preferences : %s\n" % charsets) 37 37 return charsets[0]