[web/calendar] fix regression in previous changeset
"Enables css customization in CalendarView" was untested, and introduced a crash:
TypeError: not all arguments converted during string formatting
--- a/cubicweb/web/views/calendar.py Mon Mar 17 15:21:47 2014 +0100
+++ b/cubicweb/web/views/calendar.py Tue Mar 15 14:30:21 2016 +0100
@@ -193,7 +193,7 @@
if cssclass:
self.w(u'<div class="%s" id="%s"></div>' % (cssclass, self.calendar_id))
else:
- self.w(u'<div id="%s"></div>' % (cssclass, self.calendar_id))
+ self.w(u'<div id="%s"></div>' % self.calendar_id)
def add_onload(self):
fullcalendar_options = self.fullcalendar_options.copy()