2009/8/18 aurelien villejoubert <[email protected]>: > hello > > i am trying to modify the report_view.html, i want to print on this page > some param from ticket( for example ticket.id as in ticket.html), but i > don't know how it works. > I don't understand how ticket.html can get those params and i don't find the > link between the files .html and .py. > > if someone can help me and or explain me how it works, it would be great > thanks > > and excuse me for my english, i am french
Most every page you see in Trac is rendered by a Trac Component that implements the IRequestHandler interface. The IRequestHandler interface requires a method called process_request(). It returns the name of a Genshi template (such as ticket.html) and a dictionary containing all the data that will be passed into the template when it's rendered. Typically, that data is also built up in process_request(). You can see a subset of the data passed to the template for a specific page by adding hdfdump=1 to the URL, if you have TRAC_ADMIN privileges. Or you can see even more if you use the TracDeveloper plugin. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
