Modify ↓
Opened 11 years ago
Closed 11 years ago
#11620 closed defect (cantfix)
Error reported in the log file when using TicketQuery (in the web service seems ok)
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | |
Component: | query system | Version: | 1.0.1 |
Severity: | minor | Keywords: | TicketQuery |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The TicketQuery
macro seems to work ok, but in the log file I can see this error:
2014-05-21 10:23:28,720 Trac[formatter] ERROR: Macro TicketQuery(parent=#1023&status!=closed, format=table, order=priority, col=id|summary|modified|owner|reporter|cc|keywords) failed: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/trac/wiki/formatter.py", line 765, in _macro_formatter return macro.ensure_inline(macro.process(args)) File "/usr/local/lib/python2.7/dist-packages/trac/wiki/formatter.py", line 356, in process text = self.processor(text) File "/usr/local/lib/python2.7/dist-packages/trac/wiki/formatter.py", line 343, in _macro_processor text) File "/usr/local/lib/python2.7/dist-packages/trac/ticket/query.py", line 1315, in expand_macro tickets = query.execute(req) File "/usr/local/lib/python2.7/dist-packages/trac/ticket/query.py", line 300, in execute sql, args = self.get_sql(req, cached_ids, authname, tzinfo, locale) File "/usr/local/lib/python2.7/dist-packages/trac/ticket/query.py", line 429, in get_sql tzinfo = req.tz AttributeError: 'Mock' object has no attribute 'tz'
I've look for this error but it seems that it is not reported, peobably because it's justa an error that apears in the log file, but the macro seems to work fine?
I'm reporting it just in case it helps!
Thanks for trac!
Albert
Attachments (0)
Note:
See TracTickets
for help on using tickets.
PluginIssue. Trac core uses
Mock
object for only testing purpose. It seems that any one of installed plugins usesMock
object and leads the issue. Please ask on the MailingList and/or IrcChannel or report to authors of the plugin.