${select('*|text()')}
") and html.endswith(""):
html = html[3:-4]
return genshi.Markup(html)
TODAY_FORMAT = "%H:%M"
FULL_FORMAT = "%d.%m.%y %H:%M"
last_day = datetime.datetime.today() - datetime.timedelta(days=1)
def show_timestamp(date):
if date <= last_day:
template = TODAY_FORMAT
else:
template = FULL_FORMAT
return date.strftime(template)
def nav_links():
result = []
if prev_link:
result.append('aktuellere' % prev_link)
if next_link:
result.append('ältere' % next_link)
return genshi.Markup(" | ".join(result))
?>
${select('*|text()')}