Modify

Opened 15 years ago

Closed 15 years ago

#6731 closed enhancement (fixed)

support TracLightning

Reported by: okamototk Owned by: Takanori Suzuki
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 15 years ago by Takanori Suzuki

Resolution: fixed
Status: newclosed

(In [7734])

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Takanori Suzuki.
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.