summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 62481ce)
raw | patch | inline | side by side (parent: 62481ce)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 19 Feb 2003 23:32:50 +0000 (23:32 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 19 Feb 2003 23:32:50 +0000 (23:32 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1531 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/templating.py | patch | blob | history |
index ffb5fc13375ee6e1393ee1890d9bbb457405a20b..c2ec5d08cdc01a482c59b6e40b24c9f9fca74016 100644 (file)
return interval.pretty()
return str(interval)
- def pretty(self, format='%d %B %Y'):
+ _marker = []
+ def pretty(self, format=_marker):
''' Render the date in a pretty format (eg. month names, spaces).
The format string is a standard python strftime format string.
string, then it'll be stripped from the output. This is handy
for the situatin when a date only specifies a month and a year.
'''
- return self._value.pretty()
+ if format is not self._marker:
+ return self._value.pretty(format)
+ else:
+ return self._value.pretty()
def local(self, offset):
''' Return the date/time as a local (timezone offset) date/time.