Yes, thanks a lot. All of this has been very helpful. One other thing: my plugin currently implements ITemplateStreamFilter. I apply a filter to the ticket's template stream in order to inject my custom components into the ticket template. I was wondering if this is the best way to do it, keeping in mind that I wan't everything to be local to my plugin and not touch the existing trac files.
On Fri, Jul 16, 2010 at 1:16 PM, bobbysmith007 <[email protected]>wrote: > Well the easiest way to do this is to look at how the current > trac/ticket/web_ui.py does it. > > I use ipython to figure out what I need to get the plugin to do, then > once I am done exploring, I put together the plugin code and test/debug > inside of trac. > > In [1]: from trac.env import Environment > In [2]: e = Environment("/var/trac/trac-instance") > In [3]: import trac > In [4]: import trac.ticket > In [5]: t = trac.ticket.Ticket(e, 1) > In [6]: t.values['keywords'] > In [7]: t.values['description'] > > I hope this helps, > Russ Tyndall > > > > On 7/14/2010 10:29 PM, Matt Crinklaw wrote: > > using my plugin, that shows up on the ticket page, but I need to > > populate it with information from the ticket. The main things of > > interest to me are the keywords and description of the ticket, but I > > don't know how to get these. Does the env have anything I could use? > _______________________________________________ > th-users mailing list > [email protected] > https://lists.trac-hacks.org/mailman/listinfo/th-users >
_______________________________________________ th-users mailing list [email protected] https://lists.trac-hacks.org/mailman/listinfo/th-users
