gristlabs_grist-core/sandbox/grist/functions
Dmitry S 4e11b6a922 (core) Implement RECORD function that converts Records to Python dictionaries
Summary:
Examining a Record is currently difficult, because its columns are hard to
list (and to use), and CircularRef errors hard to avoid. The RECORD function
takes care of this mess to return a simple dictionary of values.

- Supports dates_as_iso=False flag to turn off the translation of date/datetime
  objects to strings.
- Supports expand_refs=True flag to apply RECORD() to encountered values of
  type Record, for a single level of nesting.

Test Plan: Added a unittest for RECORD()

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2582
2020-08-12 13:31:57 -04:00
..
__init__.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
date.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
info.py (core) Implement RECORD function that converts Records to Python dictionaries 2020-08-12 13:31:57 -04:00
logical.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
lookup.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
math.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
schedule.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
stats.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
test_schedule.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
text.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00