Merge: Serialization: change annotation to `serialize` and intro `noserialize`
authorJean Privat <jean@pryen.org>
Sat, 30 May 2015 00:36:52 +0000 (20:36 -0400)
committerJean Privat <jean@pryen.org>
Sat, 30 May 2015 00:36:52 +0000 (20:36 -0400)
commitb68e4567820b14ace75f2a345d497c1f51a20347
treedff0787fbc1ed5bbc9ce54c046486899f5749beb
parent91136cda6e5cf63bcc2a92800bc76a1e5c7f6fac
parentfc1454592daff90d92d88859ec52cf312c13e647
Merge: Serialization: change annotation to `serialize` and intro `noserialize`

The annotation `serialize` replaces `auto_serialize` and it is also more versatile. It can annotate a module so all its class definitions are serializable. It can also annotate an attribute so only this attribute is serialized.

The `noserialize` annotation is for exceptions to `serialize`. The most common case is to mark as non-serializable an attribute such as a password or a data blob.

Pull-Request: #1389
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>