gnome.utilities.schema_decorator
experimental code for a class decorator that automatically sets the schema for an object for serialization
- NOTE: maybe it would be better to do with a metaclass
for GNOME_ID ?
Functions
|
make a class serializable |
Module Contents
- gnome.utilities.schema_decorator.serializable(cls)
make a class serializable
this decorator finds all class attributes that are colander.SchemaType – and adds them to the schema