hawkowl/saratoga — pull request #3 by grooverdan (2014-08-05 14:22:51+00:00)
Title: Add jsonDumps default option to SaratogoAPI ...

object to perform textualisation of non-text/number objects

Perfectly understand if this is too crude to include at such a high level.

example:

def _todate(obj):
return obj.strftime('%d/%m/%Y')

api = SaratogaAPI(DKIM, DKIM_APIDef, serviceClass=Database(), jsonDumpsDefault=_todate)