> But that's gross.  How can I get a req inside a ticket change listener?

The short answer is you can't. There has been some effort to avoid
requiring request objects everywhere, but it seems this hasn't yet
reached the ticket queries. As you have already found out, the query
only needs an Href object, the current authname, and the current timezone.

The Href could be made optional, and if it's missing, no ['href'] item
would be generated. The authname and timezone could be passed as
explicit arguments to count(), execute() and get_sql().

If you can produce a patch that fixes these occurrences of the request
object, I could apply it to trunk.

-- Remy

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to