From: W. Trevor King Date: Thu, 28 Jul 2011 17:48:20 +0000 (-0400) Subject: Add _clear_class and _backed_subclasses to PackageConfig. X-Git-Tag: 0.5~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d951f6085bdd6109e2695eb370f731f14412cb23;p=pypiezo.git Add _clear_class and _backed_subclasses to PackageConfig. --- diff --git a/pypiezo/config.py b/pypiezo/config.py index 791c2e8..3f7bba8 100644 --- a/pypiezo/config.py +++ b/pypiezo/config.py @@ -34,6 +34,9 @@ class PackageConfig (_h5config_tools.PackageConfig): ] +PackageConfig._clear_class = PackageConfig + + class AxisConfig (_config.Config): "Configure a single piezo axis" settings = [ @@ -105,3 +108,8 @@ class InputChannelConfig (ChannelConfig): _util.build_backend_classes(_sys.modules[__name__]) + +PackageConfig._backed_subclasses = [ + ('.h5', HDF5_PackageConfig), + ('.yaml', YAML_PackageConfig) + ]