Commit 30d0e4d9 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Rename MyJsonEncoder as JSONEncoder.

parent 69e44829
......@@ -26,7 +26,7 @@ from converter import (to_field,
to_viewport)
from dbui import Dbui
from dbsvc import CALLBACK_ERRORS, DbSvc
from directsvc import DBUI, DirectSvc
from directsvc import DBUI, DirectSvc, JSONEncoder
from extjs import (ArrayStore,
CheckBox,
ComboBox,
......
......@@ -17,7 +17,7 @@ DBUI = "Dbui"
PROC_KEY = "%s.%s"
class MyJsonEncoder(json.JSONEncoder):
class JSONEncoder(json.JSONEncoder):
"""Add to the standard JSON encoder:
- date
......@@ -208,4 +208,4 @@ class DirectSvc(BaseSvc):
li.append(di)
self.dbg("End directSvc.call", li)
return json.dumps(li, cls=MyJsonEncoder)
return json.dumps(li, cls=JSONEncoder)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment