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 ?

Module Contents

Functions

serializable(cls)

make a class serializable

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