Modify ↓
#7038 closed defect (fixed)
[Patch] Add Trac 0.12 compatible version
Reported by: | anonymous | Owned by: | Prentice Wongvibulsin |
---|---|---|---|
Priority: | normal | Component: | TracTicketStatsPlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
I tried setting this up in our development environment but ran into some issues. To run this plugin on MySQL I first needed to make the changes mentioned in http://trac-hacks.org/ticket/5568
I then had more problems that I think are due to 0.12 changes. First with
RuntimeError: No Content-Length header set
so I changed
req.write(jsdstr)
to
req.send(jsdstr.encode('utf-8'))
Stats were now returned but they were all 0. I noticed the sql generated looked for dates in seconds while the table used microseconds. I changed all the
to_timestamp
to
to_utimestamp
That was enough to get it working.
Attachments (0)
Change History (6)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Partial duplicate of #6333, but I'll close the other tickets since this also has a fix for the 0.12 timestamp format.
comment:3 Changed 14 years ago by
Summary: | Tickets not being shown in chart → [Patch] Add Trac 0.12 compatible version |
---|
comment:5 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
Replying to anonymous:
I can confirm this.