Modify

Opened 4 years ago

Closed 4 years ago

#6731 closed enhancement (fixed)

support TracLightning

Reported by: okamototk Owned by: takanorig
Priority: normal Component: TicketExtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

TicketExtPlugin require json-py on TracLightning. But TracLightning already include simple-json.

Please apply following patch to support old simple-json.

Index: ticketext/api.py
===================================================================
--- ticketext/api.py    (revision 7733)
+++ ticketext/api.py    (working copy)
@@ -1,9 +1,13 @@
 # -*- coding: utf-8 -*-

-import json
 from os import environ
 from trac.core import *

+try:
+   import json
+except:
+   import simplejson as json
+
 class LocaleUtil:

     def get_locale(self, req):

regards,

Takashi Okamoto

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by takanorig

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

(In [7734])

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