#2385 #3452 #2371 add options for selecting date format and calendars on reports

svn: r13846
This commit is contained in:
Jérôme Rapinat
2009-12-18 18:03:44 +00:00
parent 7b9bd62734
commit 25db37841c
3 changed files with 51 additions and 0 deletions

View File

@@ -80,3 +80,12 @@ def get_date(date_base) :
def get_date_valid(date_base):
date_obj = date_base.get_date_object()
return date_obj.get_valid()
def get_calendar_formats():
"""
Return the list of supported calendars.
"""
try:
return LANG_TO_DISPLAY[LANG].calendar
except:
return LANG_TO_DISPLAY["C"].calendar