Ticket #355 (assigned enhancement)
Option to map ArrayCollection/ObjectProxy to (list, tuple)/dict
| Reported by: | dthompso | Owned by: | dthompso |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4 |
| Component: | AMF3 | Version: | |
| Keywords: | Cc: | dthompso@… |
Description (last modified by thijs) (diff)
I am experimenting with pyamf and the SQLAlchemy adapter. Everything is working well, but my Flex app uses ObjectProxy and ArrayCollection extensively for binding. Using the current code base, if I want to use ArrayCollection and ObjectProxy with SQLAlchemy, I would have to manually convert to/from pyamf.flex.ObjectProxy and pyamf.flex.ArrayCollection after reading from the DB and before writing to the DB. I think many flex users would appreciate an optional parameter in the gateway to map all lists and tuples to ArrayCollection and all dicts to ObjectProxy.
I am currently using lame hacks in pyamf.pyamf3.readObject and pyamf.pyamf3.writeList and pyamf.pyamf3.writeDict to achieve the desired result.
