def datetimeformat_filter(obj, html=True, prefixed=True): rv = format_datetime(obj) if prefixed: rv = _(u'on %s') % rv if html: rv = u'<span class="datetime" title="%s">%s</span>' % ( obj.strftime('%Y-%m-%dT%H:%M:%SZ'), escape(rv)) return Markup(rv)
def datetimeformat_filter(obj, html=True, prefixed=True): rv = format_datetime(obj) if prefixed: rv = _(u'on %s') % rv if html: rv = u'<span class="datetime" title="%s">%s</span>' % ( obj.strftime('%Y-%m-%dT%H:%M:%SZ'), escape(rv) ) return rv
def _format_entry(author, date, extra=u''): return _(u'%s (%s)') % (author, format_datetime(date)) + extra
def _format_entry(author, date, extra=u""): return _(u"%s (%s)") % (author, format_datetime(date)) + extra