--- a/web/views/igeocodable.py Thu Apr 22 19:37:56 2010 +0000
+++ b/web/views/igeocodable.py Thu Apr 22 19:48:04 2010 +0000
@@ -7,7 +7,10 @@
"""
__docformat__ = "restructuredtext en"
-import simplejson
+try:
+ import json
+except ImportError:
+ import simplejson as json
from cubicweb.interfaces import IGeocodable
from cubicweb.view import EntityView
@@ -39,7 +42,7 @@
'center': center,
'markers': markers,
}
- self.w(simplejson.dumps(geodata))
+ self.w(json.dumps(geodata))
def build_marker_data(self, row, extraparams):
entity = self.cw_rset.get_entity(row, 0)