[Findit] Add dict-like and list-like objects to limit element type |
||
Issue descriptionTo make it possible to have a dict/list of structured objects, we need to add dict-like and list-like objects to limit element type.
,
Nov 3 2017
The following revision refers to this bug: https://chromium.googlesource.com/infra/infra/+/1881f4891b5f24d72ce9655e4559f96ff11ff4b6 commit 1881f4891b5f24d72ce9655e4559f96ff11ff4b6 Author: Chan <chanli@chromium.org> Date: Fri Nov 03 21:12:17 2017 [Findit] Modify StructuredObject to use TypedDict and TypedList. Modified ToDict and FromDict methods (renamed to ToSerializable and FromSerializable respectively to simplify code) to handle cases where attribute is of type TypedDict or TypedList. Tests can be used as demos for using TypedDict and TypedList. Bug: 779879 Change-Id: I0b1533ec98f0893804d125a9dbc7f5926d70e1d0 Reviewed-on: https://chromium-review.googlesource.com/748710 Commit-Queue: Chan Li <chanli@chromium.org> Reviewed-by: Shuotao Gao <stgao@chromium.org> Reviewed-by: Sharu Jiang <katesonia@chromium.org> Reviewed-by: Jeffrey Li <lijeffrey@chromium.org> [modify] https://crrev.com/1881f4891b5f24d72ce9655e4559f96ff11ff4b6/appengine/findit/gae_libs/test/pipelines_test.py [modify] https://crrev.com/1881f4891b5f24d72ce9655e4559f96ff11ff4b6/appengine/findit/libs/structured_object.py [modify] https://crrev.com/1881f4891b5f24d72ce9655e4559f96ff11ff4b6/appengine/findit/gae_libs/pipelines.py [modify] https://crrev.com/1881f4891b5f24d72ce9655e4559f96ff11ff4b6/appengine/findit/libs/test/structured_object_test.py
,
Nov 17 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Nov 3 2017