Changeset 12634 for main/waeup.ikoba/trunk/src/waeup/ikoba/utils
- Timestamp:
- 27 Feb 2015, 21:56:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/utils/helpers.py
r12408 r12634 30 30 from cStringIO import StringIO 31 31 from docutils.core import publish_string 32 from zope.i18n import translate 32 33 from zope.component import getUtility 33 34 from zope.component.interfaces import IFactory … … 40 41 from zope.pluggableauth.interfaces import IAuthenticatorPlugin 41 42 from zope.formlib.widget import renderElement 43 from waeup.ikoba.interfaces import MessageFactory as _ 42 44 43 45 BUFSIZE = 8 * 1024 … … 859 861 contents=ReST2HTML(text)) 860 862 return elements 863 864 def format_date(dateobj, request): 865 if isinstance(dateobj, datetime.date): 866 return dateobj.strftime("%d/%m/%Y") 867 else: 868 return translate(_('indefinite'), context=request)
Note: See TracChangeset for help on using the changeset viewer.