Colander schema node with the same value as another node?

15 views
Skip to first unread message

Petr Blahos

unread,
Dec 9, 2016, 9:01:21 AM12/9/16
to pylons-discuss
Hi,

is it possible to define a schema with a node that will have the same value
as another node in the same Schema? Something along these lines:

class Schema(colander.Schema):
    initial_amount = colander.SchemaNode(colander.Float())
    current_amount = GetValueFrom(src="initial_amount")


Thanks, 
Petr


Reply all
Reply to author
Forward
0 new messages