model: improve the core model to allow recursive object structures
commit7c2e986ff3a4fe7d337ca6ae2383186134824f1a
authorDavid Aguilar <davvid@gmail.com>
Sat, 26 Apr 2008 13:44:26 +0000 (26 06:44 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sat, 26 Apr 2008 13:44:57 +0000 (26 06:44 -0700)
tree6fe18331c9275a65ee7e0f108614ddf2c2a2d16d
parenta9f4f2828c9156b05402d0774c531281e7a492c1
model: improve the core model to allow recursive object structures

Previously, the logic for serializing/deserializing to/from dictionaries
did not properly deal with lists of hashes, hashes of lists, lists, etc.

The core model can now handle any arbitrarily complicated structure.
The core to_dict() routine recursively walks the object structure
without the need for external data for tracking parameter types.

Signed-off-by: David Aguilar <davvid@gmail.com>
ugit/model.py