wildcomputations / budgettool

model future money flow
GNU General Public License v3.0
0 stars 0 forks source link

Restructure to/from dict #4

Open j3kestrel opened 8 years ago

j3kestrel commented 8 years ago

Some objects can't be serialized by the json. Presently these are converted to strings by the objects when the provide their dictionary representation. It may be better to expand the scope of the jsonparser to handle this object <-> string translation.

Replace the iter() methods that permit dict(object), and replace with object.to_dict()

wildcomputations commented 8 years ago

Also need to fix up the conversion of schedules to dictionaries so that the type is part of the returned dictionary.

See pull request #13