Modify

Opened 5 years ago

Closed 4 years ago

#6333 closed defect (duplicate)

[Patch] Add Trac 0.12 compatible version

Reported by: anonymous Owned by: echo0101
Priority: normal Component: TracTicketStatsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

the flash in Ticket Statistics is blank

Trac: 0.12dev-r0
Python: 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
setuptools: 0.6c9
SQLite: 3.3.4
pysqlite: 2.3.2
Genshi: 0.6dev-r1092
Babel: 0.9.4
mod_python: 3.3.1
Subversion: 1.6.3 (r38063)
jQuery: 1.3.2

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by olle.jonsson@…

Here is a 0.12 upgrade fix for this problem.

  • 0.11/ticketstats-plugin/ticketstats/ticketstats.py

    diff --git a/0.11/ticketstats-plugin/ticketstats/ticketstats.py b/0.11/ticketstats-plugin/ticketstats/ticketstats.py
    index d270845..43cb5bc 100644
    a b class TicketStatsPlugin(Component): 
    219219            jsdstr += ' "closed": %s,' % x['closed'] 
    220220            jsdstr += ' "open": %s},\n' % x['open'] 
    221221         jsdstr = jsdstr[:-2] +'\n]}' 
     222         req.send_header("Content-Length", len(jsdstr)) 
    222223         req.write(jsdstr) 
    223224         return  
    224225      else: 

So, to edit the file and adding this line, before there is a official release: If you have a zipped egg install, there are a few hoops to jump through.

  • find the .egg file's location by opening a python shell and writing import ticketstats and then help(ticketstats) - this will give you its file path, copy this text.
  • move the damned .egg file out of the site-packages folder (or wherever it was)
  • then issue a easy_install -U -Z http://trac-hacks.org/svn/tracticketstatsplugin/0.11/ticketstats-plugin/dist/Tracticketstats-2.1-py2.5.egg to install ("force-upgrade") an unzipped version.

Then go edit! And then restart Apache, if you run Trac via an Apache.

comment:2 Changed 4 years ago by anonymous

I can confirm this.

comment:3 Changed 4 years ago by rjollos

  • Summary changed from not work with trac0.12 to [Patch] Add Trac 0.12 compatible version

comment:4 Changed 4 years ago by rjollos

  • Resolution set to duplicate
  • Status changed from new to closed

#7038 was a duplicate, but that ticket also has a fix for the new 0.12 timestamp format, so closing this ticket as a duplicate.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from echo0101. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.