[views] fix crash in rss view
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 27 Jul 2015 15:29:27 +0200
changeset 1836 82663d2caa1b
parent 1835 0d7c0ea12054
child 1837 c3ef7db6f89b
child 1841 f0c754604ae2
[views] fix crash in rss view starttime is no longer a TestExecution attribute, it comes from the orm.
views/rss.py
--- a/views/rss.py	Fri Jul 24 20:57:16 2015 +0200
+++ b/views/rss.py	Mon Jul 27 15:29:27 2015 +0200
@@ -36,7 +36,7 @@
         data = {
             'config': entity.configuration.dc_title(),
             'branch': entity.branch,
-            'date': entity.printable_value('starttime'),
+            'date': self._cw.format_date(entity.starttime, time=True),
         }
         title = u"%(config)s #%(branch)s"
         self._marker('title', title % data)