gnome.persist.schema_decorator¶
experimental code for a class decorator that automatically sets the schema for an object for serialization
So far – does not handle subclassing, which is a BIG missing feature
- NOTE: maybe it would be better to do with a metaclass
for GNOME_ID ?
Functions¶
|
make a class serializable |
Module Contents¶
- gnome.persist.schema_decorator.serializable(cls)¶
make a class serializable
this decorator finds all class attributes that are colander.SchemaType – and adds them to the schema