Modify

Opened 5 years ago

Closed 5 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 5 years ago by takanorig

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

(In [7734])

Add Comment

Modify Ticket

Action
as 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.