comparison roundup/cgi/apache.py @ 2809:353dc16a49b2

pass tracker home directory to get_translation()
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sat, 23 Oct 2004 14:13:24 +0000
parents d45f1669599c
children 835ac4013578
comparison
equal deleted inserted replaced
2808:18c28d22b3b5 2809:353dc16a49b2
18 # to open the tracker 18 # to open the tracker
19 # 06-may-2004 [als] use cgi.FieldStorage from Python library 19 # 06-may-2004 [als] use cgi.FieldStorage from Python library
20 # instead of mod_python FieldStorage 20 # instead of mod_python FieldStorage
21 # 29-apr-2004 [als] created 21 # 29-apr-2004 [als] created
22 22
23 __version__ = "$Revision: 1.2 $"[11:-2] 23 __version__ = "$Revision: 1.3 $"[11:-2]
24 __date__ = "$Date: 2004-07-12 09:14:12 $"[7:-2] 24 __date__ = "$Date: 2004-10-23 14:13:24 $"[7:-2]
25 25
26 import cgi 26 import cgi
27 import os 27 import os
28 28
29 from mod_python import apache 29 from mod_python import apache
91 # os.environ['PATH_INFO'] = string.join(path[2:], '/') 91 # os.environ['PATH_INFO'] = string.join(path[2:], '/')
92 # we just remove the first character ('/') 92 # we just remove the first character ('/')
93 _env["PATH_INFO"] = req.path_info[1:] 93 _env["PATH_INFO"] = req.path_info[1:]
94 _form = cgi.FieldStorage(req, environ=_env) 94 _form = cgi.FieldStorage(req, environ=_env)
95 _client = _tracker.Client(_tracker, Request(req), _env, _form, 95 _client = _tracker.Client(_tracker, Request(req), _env, _form,
96 translator=TranslationService.get_translation(_lang)) 96 translator=TranslationService.get_translation(_lang,
97 tracker_home=_home))
97 _client.main() 98 _client.main()
98 return apache.OK 99 return apache.OK
99 100
100 # vim: set et sts=4 sw=4 : 101 # vim: set et sts=4 sw=4 :

Roundup Issue Tracker: http://roundup-tracker.org/