Modify ↓
Opened 16 years ago
Closed 16 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)
Note: See
TracTickets for help on using
tickets.



(In [7734])