Or perhaps req.abs_href or even self.env.project_url T
On Thu, Oct 30, 2008 at 11:10 AM, Ted Gifford <[EMAIL PROTECTED]> wrote: > req.base_path looks like what you want. Here's a sample: > req.outcookie['trac_form_token']['path'] = req.base_path or '/' > > T > > > On Thu, Oct 30, 2008 at 9:18 AM, Martin Scharrer < > [EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I need to access the project URL name/prefix inside a Trac macro. >> 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. >> >> Does anyone now if 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 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 -~----------~----~----~----~------~----~------~--~---
