Changeset 2355
- Timestamp:
- Jun 30, 2007, 4:23:17 PM (17 years ago)
- Location:
- tracforgeplugin/branches/bewst/0.11-clearsilver/tracforge/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tracforgeplugin/branches/bewst/0.11-clearsilver/tracforge/admin/dispatch.py
r2350 r2355 60 60 environ['SCRIPT_NAME'] = req.href.projects() 61 61 environ['PATH_INFO'] = path_info 62 print 'setting parent dir to', os.path.dirname(self.env.path)63 62 64 # environ['TRAC_ENV_PARENT_DIR'] = os.path.dirname(self.env.path)65 # if 'TRAC_ENV' in environ:66 # del environ['TRAC_ENV']67 68 # The above incantation didn't work on the development server. If we have69 # problems serving subprojects on the real server, though, we may need to70 # reinstate it along with the replacement below.71 72 63 environ['trac.env_parent_dir'] = os.path.dirname(self.env.path) 73 64 if 'trac.env_path' in environ: 74 del environ['trac.env_path'] 75 65 # WARNING: this is a really FRAGILE HACK!! 66 # 67 # The code here used to delete the 'trac.env_path' key from environ, 68 # but then other code in web/main.py would use setdefault to bring 69 # it back to life... with the wrong value. Code later in that file 70 # checks environ['trac.env_path'] as a truth value and treats empty 71 # results as absent. 72 environ['trac.env_path'] = '' 73 76 74 req._response = dispatch_request(environ, start_response) 77 75 -
tracforgeplugin/branches/bewst/0.11-clearsilver/tracforge/admin/model.py
r2321 r2355 280 280 cursor = db.cursor() 281 281 cursor.execute('INSERT INTO tracforge_project_log (project, action, args, return, stdout, stderr) VALUES (%s, %s, %s, %s, %s, %s)', 282 (proj.name, action, args, rv, o_data, e_data))282 (proj.name, action, args, unicode(rv), o_data, e_data)) 283 283 db.commit() 284 284 db.close()
Note: See TracChangeset
for help on using the changeset viewer.