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

Reply via email to