trac.ticket.query

exception trac.ticket.query.QuerySyntaxError(message, title=None, show_traceback=False)

Bases: trac.core.TracError

Exception raised when a ticket query cannot be parsed from a string.

If message is an Element object, everything up to the first <p> will be displayed in the red box, and everything after will be displayed below the red box. If title is given, it will be displayed as the large header above the error message.

exception trac.ticket.query.QueryValueError(errors)

Bases: trac.core.TracError

Exception raised when a ticket query has bad constraint values.

trac.ticket.query.datetime_now()

[tz] -> new datetime with tz’s local day and time.