--- a/web/views/plots.py Fri May 29 19:31:32 2009 +0200
+++ b/web/views/plots.py Fri May 29 19:34:00 2009 +0200
@@ -15,7 +15,7 @@
from logilab.common import flatten
from logilab.mtconverter import html_escape
-from cubicweb.utils import make_uid, UStringIO
+from cubicweb.utils import make_uid, UStringIO, datetime2ticks
from cubicweb.vregistry import objectify_selector
from cubicweb.web.views import baseviews
@@ -60,9 +60,6 @@
filtered.append( (x, y) )
return sorted(filtered)
-def datetime2ticks(date):
- return time.mktime(date.timetuple()) * 1000
-
class PlotWidget(object):
# XXX refactor with cubicweb.web.views.htmlwidgets.HtmlWidget
def _initialize_stream(self, w=None):