[z3-checkins] r42014 - z3/deliverance/DeliveranceVHoster/trunk/docs
ejucovy at codespeak.net
ejucovy at codespeak.net
Fri Apr 13 01:30:58 CEST 2007
Author: ejucovy
Date: Fri Apr 13 01:30:57 2007
New Revision: 42014
Modified:
z3/deliverance/DeliveranceVHoster/trunk/docs/openplans_hooks.py
Log:
* domain_info.domain isn't preserving port, so hacking that in for now
* set HTTP_X_OPENPLANS_APPLICATION=tasktracker when going to tasktracker
Modified: z3/deliverance/DeliveranceVHoster/trunk/docs/openplans_hooks.py
==============================================================================
--- z3/deliverance/DeliveranceVHoster/trunk/docs/openplans_hooks.py (original)
+++ z3/deliverance/DeliveranceVHoster/trunk/docs/openplans_hooks.py Fri Apr 13 01:30:57 2007
@@ -37,7 +37,7 @@
print 'The domain %r cannot be recognized by the domain_regex %r' % (domain, domain_regex)
zope_uri = app_conf['zope_uri']
remote_uris = [{'path': '',
- 'remote_uri': '%s/VirtualHostBase/http/%s/openplans/VirtualHostRoot/' % (zope_uri, domain)}]
+ 'remote_uri': '%s/VirtualHostBase/http/%s:8000/openplans/VirtualHostRoot/' % (zope_uri, domain)}]
domain_info.remote_uris = remote_uris
return
project = match.group(1)
@@ -66,6 +66,7 @@
project = environ['HTTP_X_OPENPLANS_PROJECT']
path_info = environ.get('PATH_INFO', '')
if path_info.startswith('/tasks'):
+ environ['HTTP_X_OPENPLANS_APPLICATION'] = 'tasktracker'
remote_uri = task_tracker_uri
# Move /tasks to SCRIPT_NAME
path_info_pop(environ)
More information about the z3-checkins
mailing list