-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/15/2014 07:27 PM, Keith Brown wrote: > Hi, > > I am using colander to validate a yaml file. > > The file looks like this > > main: color:White > > cars: Car1: - Brand:"Honda" - color:Red Car2: - Brand:"Toyota" > > Since Car2 does not have a color specified I want to inherit "main's" > color (white). Can colander do this, do shall I deserialize the > object, update the dictory and then serialize it for colander again?
I'm afraid not: colander has no way to spell what in Zope-land we would call "acquired" fields. You can't even define your own node types for this, because the nodes don't have access to the "parent" data in serialization / deserialization/ Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 [email protected] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlLYeLUACgkQ+gerLs4ltQ5SpwCfSNvA1ZHJxez0lqPhheFxJsyW XfgAn2riAkjmrGMhWbgNuGYIQqFRcG4f =fgyb -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.
