# HG changeset patch # User Sylvain Thénault # Date 1242821988 -7200 # Node ID 75540944ae18c94f395c27f7d3b0f9738f8affe8 # Parent 293fe4b49e288a94f850aa372a70d10c3c2b6bae fix dc_description format arg diff -r 293fe4b49e28 -r 75540944ae18 web/views/calendar.py --- a/web/views/calendar.py Wed May 20 14:19:02 2009 +0200 +++ b/web/views/calendar.py Wed May 20 14:19:48 2009 +0200 @@ -4,6 +4,8 @@ :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ +__docformat__ = "restructuredtext en" +_ = unicode from datetime import datetime, date, timedelta @@ -14,7 +16,6 @@ from cubicweb.utils import strptime, date_range, todate, todatetime from cubicweb.view import EntityView -_ = unicode # useful constants & functions ################################################ @@ -81,7 +82,8 @@ task = self.complete_entity(i) self.w(u'
') self.w(u'

%s

' % html_escape(task.dc_title())) - self.w(u'
%s
' % html_escape(task.dc_description())) + self.w(u'
%s
' + % task.dc_description(format='text/html')) if task.start: self.w(u'%s' % (task.start.isoformat(), self.format_date(task.start))) if task.stop: diff -r 293fe4b49e28 -r 75540944ae18 web/views/timeline.py --- a/web/views/timeline.py Wed May 20 14:19:02 2009 +0200 +++ b/web/views/timeline.py Wed May 20 14:19:48 2009 +0200 @@ -67,7 +67,7 @@ return None event_data = {'start': start.strftime(self.date_fmt), 'title': html_escape(entity.dc_title()), - 'description': entity.dc_description(), + 'description': entity.dc_description(format='text/html'), 'link': entity.absolute_url(), } onclick = self.onclick(entity)