Matt Crinklaw wrote:
> 
> I'm writing a plugin that adds some features when displaying a ticket. 
> I've
> added some static html, 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?
> 

You might take a look at the database schema [1] and ask on the trac-users
list [2].  I don't know much about this, but I think you typically do
something like this:
db = env.get_db_cnx()
curs = db.cursor()
curs.execute()
With your database query string as the argument to curs.execute.

[1] http://trac.edgewall.org/wiki/TracDev/DatabaseSchema
[2] http://groups.google.com/group/trac-users

-- 
View this message in context: 
http://th-users.32086.n3.nabble.com/Getting-ticket-data-in-a-plugin-tp968333p970476.html
Sent from the th-users mailing list archive at Nabble.com.
_______________________________________________
th-users mailing list
[email protected]
https://lists.trac-hacks.org/mailman/listinfo/th-users

Reply via email to