Modify

Opened 14 years ago

Closed 14 years ago

#6333 closed defect (duplicate)

[Patch] Add Trac 0.12 compatible version

Reported by: anonymous Owned by: Prentice Wongvibulsin
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 14 years ago by olle.jonsson+trachacks@…

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 14 years ago by anonymous

I can confirm this.

comment:3 Changed 14 years ago by Ryan J Ollos

Summary: not work with trac0.12[Patch] Add Trac 0.12 compatible version

comment:4 Changed 14 years ago by Ryan J Ollos

Resolution: duplicate
Status: newclosed

#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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Prentice Wongvibulsin.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.