When trying to use 3 @connect operators, I receive Syntax Error. For example, given this field configuration:
author_note:
"""Contains public note."""
derived:
@parse_first('_public_note', '_private_note', '_curators_note')
@connect('_public_note', sync_notes)
@connect('_private_note', sync_notes)
@connect('_curators_note', sync_notes)
@only_if('_public_note' in self or '_private_note' in self
or '_curators_note' in self)
sum_notes(self, '_public_note', '_private_note', '_curators_note')
Note that:
Changing the order of the decorators doesn't help
Changing only_if call to one line doesn't help
Removing any of the @connects helps
This is the pyparsing grammar definition for derived fields.
When trying to use 3
@connect
operators, I receiveSyntax Error
. For example, given this field configuration:Note that:
only_if
call to one line doesn't help@connect
s helpsThis is the
pyparsing
grammar definition forderived
fields.Which looks fine. No idea where does the error come from.