Inside the macro code, use self.env.name IIRC.

--Noah

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of jchaves
> Sent: Thursday, January 22, 2009 4:18 AM
> To: Trac Users
> Subject: [Trac] See project name inside wiki
> 
> 
> Hi all,
> 
> I am currently trying to migrate an existing gforge installation to
> trac. (or, at least, see how could i do this, hehe)
> 
> this is easy (i mean, the easy part is easy, hehe):
> ------------------------
> for a in  `ls  /path/to/svnroot`
> do
>         trac-admin $a initenv "$a" sqlite:db/trac.db svn /path/to/
> svnroot$a
> done
> ------------------------
> 
> Now I am trying to modify the default Wiki page (the one you see in
> "http://trac.example.org/<project>" ). My idea was to use the existing
> gforge database to extract some info, like "project name",
> "description", and so, and present it on this page.
> 
> I easily created a macro that returns this data from the DB. But I
> don`t know if there is a way of passing the project name ( that "$a"
> avobe ) as a parameter to this macro inside the wiki. Or if I could,
> at least, display the project name there.
> 
> Any idea?
> 
> Thanks in advance!
> 
> 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to