deb-heat/doc/source/ext
Thomas Spatzier eae9a2ad3f Factor Schema out of properties.py for re-use
There is currently some function duplication in Heat for schema
validation. There is properties.Schema and a ParamSchema class which
do mostly the same, but each with their own code.
It would be good to have a common implementation for property and
parameter validation with only property or parameter specific code
implemented in sub-classes.
The current Schema class in properties.py cannot be used in
parameters.py due to cyclic import dependencies that would arise.

This patch factors the Schema class and Constraint classes into their
own file which can then be imported by both properties.py and
parameters.py. For property schema specific code, a class
PropertySchema is introduced as derived from the common Schema class.

The code of the Schema and Constraint classes is unchanged except for
absolutely  refactoring work.

In a subsequent patch, I plan to provide the code to base ParamSchema
on the common Schema class.

Change-Id: I833edd8fad316220f56d6727fe1e3409f8fda6ee
Partial-Bug: #1230229
2013-12-02 14:46:00 +01:00
..
__init__.py Move resource doc generation to doc/source/ext 2013-11-13 15:21:04 +13:00
resources.py Factor Schema out of properties.py for re-use 2013-12-02 14:46:00 +01:00