Hi, formatter.req.base_path seems to be what I need. Thanks, Martin
On Oct 30, 1:06 pm, Martin Scharrer <[EMAIL PROTECTED]> wrote: > Hi, > (sorry if this post appears twice - all my posts oppened by using the > Google Group website never appeared so far so I'm resending this post by > email.) > > I need to access the project URL name/prefix inside a TracMacro. > I'm talking about the trac project directory name NOT the project_name > in trac.ini, > e.g. For 'http://trac.example.com/project1/wiki/WikiStart'it would be > the 'project1'. > > For the case that the trac server is running in single-project mode I > like to get (or produce) an empty string. > > Is this information somewhere in the Environment (self.env.XXX)? I > searched but couldn't find anything. > > Thanks, > Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
