=== modified file 'frameworks/python/setup.py' --- old/frameworks/python/setup.py 2016-03-03 10:37:19 +0000 +++ new/frameworks/python/setup.py 2016-06-04 23:25:03 +0000 @@ -72,8 +72,8 @@ maintainer = 'Jakob Simon-Gaarde', maintainer_email = 'jakob@simon-gaarde.dk', url='http://ladonize.org', - install_requires=['jinja2','sphinx','sphinx_bootstrap_theme'], - requires=['jinja2','sphinx','sphinx_bootstrap_theme'], + install_requires=['jinja2','sphinx','sphinx_bootstrap_theme', 'isodate'], + requires=['jinja2','sphinx','sphinx_bootstrap_theme', 'isodate'], provides=['ladon'], license='LGPL3', scripts=scriptfiles, === modified file 'frameworks/python/src/ladon/types/typeconverter.py' --- old/frameworks/python/src/ladon/types/typeconverter.py 2015-05-20 11:41:04 +0000 +++ new/frameworks/python/src/ladon/types/typeconverter.py 2016-06-04 23:28:18 +0000 @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- import sys +import datetime +import isodate from ladon.exceptions.types import * from ladon.compat import PORTABLE_BYTES,PORTABLE_STRING,pytype_support,safe_conversions @@ -59,6 +61,10 @@ try: if typ==bool and (val[0].upper()==PORTABLE_STRING('F') or val.strip()=='0'): val = False + elif typ==datetime.time: + val = isodate.parse_time(val) + elif typ==datetime.date: + val = isodate.parse_date(val) else: val = typ(val) # Run incoming filters aka. incoming postfilters