--- a/web/views/timeline.py Thu Jul 08 12:54:28 2010 +0200
+++ b/web/views/timeline.py Thu Jul 08 13:33:40 2010 +0200
@@ -26,7 +26,7 @@
from cubicweb.selectors import adaptable
from cubicweb.view import EntityView, StartupView
-from cubicweb.web import json
+from cubicweb.utils import json_dumps
_ = unicode
@@ -52,7 +52,7 @@
events.append(event)
timeline_data = {'dateTimeFormat': self.date_fmt,
'events': events}
- self.w(json.dumps(timeline_data))
+ self.w(json_dumps(timeline_data))
# FIXME: those properties should be defined by the entity class
def onclick_url(self, entity):