Commit 46fc7040 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

flake8 fixes

parent b1943cd3dfc9
......@@ -93,9 +93,15 @@ class EuserCalendar(EntityView):
am_sticker = daytype.title
pm_sticker = self._cw._(WORKING_PM)
else:
self.error('Unknown daytype class %s', klass)
am_cell = '<tr><td class="am"><div class="mday">am</div><div class="stickers">%s</div></td></tr>\n' % am_sticker
pm_cell = '<tr><td class="pm"><div class="mday">pm</div><div class="stickers">%s</div></td></tr>\n' % pm_sticker
self.error('Unknown daytype class')
am_cell = (
'<tr><td class="am"><div class="mday">am</div>'
'<div class="stickers">%s</div></td></tr>\n'
) % am_sticker
pm_cell = (
'<tr><td class="pm"><div class="mday">pm</div>'
'<div class="stickers">%s</div></td></tr>\n'
) % pm_sticker
cellcontent = u'<table class="caldata">'
cellcontent += '<tr><td class="caldate">%s</td></tr>%s %s</table>' % (curdate.day, am_cell, pm_cell)
self.w(u'<td class="%s" title="%s">%s</td>' % (' '.join(klasses), xml_escape(stickers), cellcontent))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment