In a ticket change listener, I need to get some informatin about another ticket. I could use SQL but I'd rather make sure I don't marry myself to a specific DB. Also, I'd rather not worry about whether the fields I want are custom fields or part of the base ticket and Query takes care of that for me. But Query.execute() needs an Href. I've resorted to:
class DummyReq: def __init__(self, href): self.href = href self.authname = '' req = DummyReq(Href('')) ... # Create the Query Object. query = Query.from_string(self.env, query_string) # Execute the query. Unique ID should return one row rows = query.execute(req) But that's gross. How can I get a req inside a ticket change listener? Chris -- Christopher Nelson, Software Engineering Manager SIXNET - Solutions for Your Industrial Networking Challenges 331 Ushers Road, Ballston Lake, NY 12019 Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-...@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.