Mercurial > kallithea
comparison pylons_app/lib/filters.py @ 74:cdf4fda66dd9
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Mon, 12 Apr 2010 10:29:18 +0200 |
parents | |
children | 928416088790 |
comparison
equal
deleted
inserted
replaced
73:55d7f2502dfb | 74:cdf4fda66dd9 |
---|---|
1 from mercurial import util | |
2 | |
3 capitalize = lambda x: x.capitalize() | |
4 date = lambda x: util.datestr(x) | |
5 email = util.email | |
6 hgdate = lambda x: "%d %d" % x | |
7 isodate = lambda x: util.datestr(x, '%Y-%m-%d %H:%M %1%2') | |
8 isodatesec = lambda x: util.datestr(x, '%Y-%m-%d %H:%M:%S %1%2') | |
9 localdate = lambda x: (x[0], util.makedate()[1]) | |
10 rfc822date = lambda context, x: util.datestr(x, "%a, %d %b %Y %H:%M:%S %1%2") | |
11 rfc3339date = lambda x: util.datestr(x, "%Y-%m-%dT%H:%M:%S%1:%2") |