From d887ad88674aef96f96ab0ff97c54617b8d715e7 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 6 Jan 2009 17:32:51 +0000 Subject: Implement generic structure validators and reimplement Deps as one git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5005 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugin.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/lib/Server/Plugin.py') diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index 49f498a5e..35af42355 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -127,6 +127,19 @@ class Decision(object): def GetDecisions(self, metadata, mode): return [] +class ValidationError(Exception): + pass + +class StructureValidator(object): + '''Validate/modify goal structures''' + def validate_structures(self, metadata, structures): + raise ValidationError, "not implemented" + +class GoalValidator(object): + '''Validate/modify configuration goals''' + def validate_goals(self, metadata, goals): + raise ValidationError, "not implemented" + # the rest of the file contains classes for coherent file caching class FileBacked(object): -- cgit v1.2.3-1-g7c22