You can get a ticket info:
from trac.ticket import Ticket
t = Ticket(self.env, id)
print t['status']
To save the data:
t.save_changes(req.authname, comment)
I haven't checked, but works that way.
On Thu, Jul 15, 2010 at 9:15 PM, RjOllos ry...@physiosonics.com wrote:
Matt Crinklaw
As Trac is now at 0.12 stable several plugins needs fixing. One in
particular that I like is http://trac-hacks.org/svn/gridmodifyplugin.
I got a couple of patches for gridmodifyplugin that makes it 0.12
compatible.
Problem is, seems like it's (and probably lots other) have no active maintainer.
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
You can adopt the hacks involved and apply the patch when you have SVN
access.
2010/7/16 Björn Harrtell bjorn.harrt...@gmail.com
As Trac is now at 0.12 stable several plugins needs fixing. One in
particular that I like is http://trac-hacks.org/svn/gridmodifyplugin.
I got a couple of
So I offer to maintain EstimationToolsPlugin and GridModifyPlugin as
described by tickets http://trac-hacks.org/ticket/7388 and
http://trac-hacks.org/ticket/7387
They are both plugins I use and have been involved in patching for
0.12, I would like those patches to be official.
/Björn Harrtell
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,