[Tutor] Mod python setup
Jacob Abraham
jakieabraham at yahoo.com
Thu Nov 23 07:31:31 CET 2006
Hi All,
I've been using Trac (http://trac.edgewall.org/) for some time you will be suprised to know that
I use it along with a Clearcase repository. I've also written a small
plugin that displays the MSN logs. Soon some of this code will be put
into trac hacks with an open source license.
Forgive me but I have a very silly question to ask on problems with
my multisite mod python setup. I have two trac sites both of with have
plugins with slightly different code (One navigates Base Cleacase
while the other UCM Clearcase), but for some reason both sites use the
plugins of the site I load first. I am aware that this issue comes
from my mod python setup. Please help me with the same. I'm not too
sure if this is the right forum to ask this question.
My current mod python setup looks like this.
LoadModule python_module modules/mod_python.so
LoadModule sspi_auth_module modules/mod_auth_sspi.so
<Location /trac>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonPath "['C:\\devutil\\lib\\\tracprod'] + sys.path"
PythonOption TracEnv C:\\devutil\trac\tracprod
PythonOption TracUriRoot /trac
</Location>
<Location /trac/login>
AuthName "A Protected Place"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
SSPIBasicPreferred On
# SSPIUsernameCase lower
require valid-user
</Location>
<Location /tracdev>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonPath "['C:\\devutil\\lib\\\tracdev'] + sys.path"
PythonOption TracEnv C:\\devutil\trac\tracdev
<!--
D(["mb"," PythonOption TracUriRoot /tracdev<br /></Location><br /><br /><Location /tracdev/login><br /> AuthName "A Protected Place"<br /> AuthType SSPI<br /> SSPIAuth On<br /> SSPIAuthoritative On<br /> SSPIOfferBasic On<br /> SSPIBasicPreferred On<br /> # SSPIUsernameCase lower<br /> require valid-user<br /></Location><br /><br />Thanking You.<br /><br />Regards,<br /></div>",1]
);
D(["mb","<div style\u003d\"direction:ltr\"><span class\u003dsg>Jacob Abraham<br /></span></div>",0]
);
D(["ce"]);
//--> PythonOption TracUriRoot /tracdev
</Location>
<Location /tracdev/login>
AuthName "A Protected Place"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
SSPIBasicPreferred On
# SSPIUsernameCase lower
require valid-user
</Location>
Thanking You.
Regards,
Jacob Abraham
More information about the Tutor
mailing list