Homec4science

jsonalchemy: update `parser.py` for pyparsing 2

Authored by Esteban J. G. Gabancho <esteban.gabancho@gmail.com> on Mar 14 2014, 11:30.

Description

jsonalchemy: update parser.py for pyparsing 2

  • Transform hardcoded decorators into extensions inside the parser folder. The new decorators are cataloged as before, on and after depending on when they should be evaluated.
  • All the decorators that before needed always a tuple now works as @decorator(*args).
  • Remove @inherit_from decorator from field definitions as it is replaced by @extend and @override.
  • New decorator extension added @connect(field_name[, function]) to link to fields and propagate changes from one to the other and vice versa.
  • Remove include form field definitions as now registries are used.
  • Replace checker section by schema to perform simple validations, like type or length. For more complex check use the checker module.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>

Details

Committed
kuncarJun 4 2014, 16:04
Parents
R3600:f5764fa50318: sqlalchemy: change JSON type to native one.
Branches
Unknown
Tags
Unknown

Event Timeline

Jiri Kuncar <jiri.kuncar@cern.ch> committed R3600:7f6514db45e6: jsonalchemy: update `parser.py` for pyparsing 2 (authored by Esteban J. G. Gabancho <esteban.gabancho@gmail.com>).Jun 4 2014, 16:04