Yes... So it looks you're using
x:/projects/project_name/Trac for hosting every trac project, right?
I guess you could modify my plugin, where it says:
# get search path and base_url
search_path, this_project = os.path.split(self.env.path)
base_url, _ = posixpath.split(req.abs_href())
Manually set or change the search_path (right now it's using the current
project parent directory). For example:
search_path, this_project = (x:/projects/, '')
base_url = /projects/
Setting 'this_project' to the empty string will make it search in the
current project too, which is redundant, but should work. Then, in here:
# make up URL for project
project_url = '/'.join( (base_url, project) )
project_path = os.path.join(search_path,project)
Change it to:
# make up URL for project
project_url = '/'.join( (base_url, project) )
project_path = os.path.join(search_path, project, 'Trac')
I hope this works. If you improve the plugin, feel free to share the
changes.
Greets.
El mié, 07-11-2007 a las 13:39 +0200, Jani Tiainen escribió:
> Alvaro J. Iradier Muro kirjoitti:
> >
> > This is my setup (Apache) for the multi project trac environment:
> >
> > <Location /trac/amb>
> > SetEnv LC_ALL "es_ES"
> >
> > SetHandler mod_python
> > PythonHandler trac.web.modpython_frontend
> > PythonOption TracEnvParentDir c:/trac_envs/amb
> > PythonOption TracUriRoot /trac/amb
> >
> > </Location>
>
> Well now I have explanation why it doesn't work, and propably never will
> with my current setup...
>
> RewriteEngine on
> RewriteRule ^/projects/+$ /projects/projectlist.cgi [L]
> RewriteCond x:/$1/trac -d
> RewriteRule ^/projects/([[:alnum:]\-]+)(/?.*) /projects/trac.cgi$2
> [S=1,E=TRAC_ENV:x:/projects/$1/Trac]
> RewriteRule ^/projects/(.*) /projects/projectlist.cgi
>
>
> <Location "/projects">
> AddHandler cgi-script .cgi
> Options Indexes MultiViews SymLinksIfOwnerMatch +ExecCGI
>
> AllowOverride None
> Order allow,deny
> Allow from all
> </Location>
>
--
--------------------------------------
Álvaro J. Iradier Muro
[EMAIL PROTECTED]
AM&B - Dept. de Desarrollo e I+D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---