The various format conversion functions (jsonload_, jsondump, csvload, csvdump, display, formprep, formpost, etc) in ddr-defs:repo_models are a useful mechanism but as much as possible these should be simple calls to DDR.converters. Custom code should be kept to a minimum. Code from custom functions should be incorporated into DDR.converters as early as possible. This will help keep ddr-defs simple and easy for users.
The ultimate goal would be to be able to specify the exact format of a field ('datetime', 'listofdicts', etc) in FIELDS and DDR would just do the right thing.
The various format conversion functions (
jsonload_
,jsondump
,csvload
,csvdump
,display
,formprep
,formpost
, etc) inddr-defs:repo_models
are a useful mechanism but as much as possible these should be simple calls toDDR.converters
. Custom code should be kept to a minimum. Code from custom functions should be incorporated intoDDR.converters
as early as possible. This will help keepddr-defs
simple and easy for users.The ultimate goal would be to be able to specify the exact format of a field ('datetime', 'listofdicts', etc) in
FIELDS
and DDR would just do the right thing.