diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/python/integration.quality.PolicyValidator-class.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/python/integration.quality.PolicyValidator-class.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,369 @@ + + + + + integration.quality.PolicyValidator + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package integration :: + Module quality :: + Class PolicyValidator + + + + + + +
[hide private]
[frames] | no frames]
+
+ +

Class PolicyValidator

source code

+
+object --+
+         |
+        PolicyValidator
+
+ +
+Validate policy files on a hierarchy.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Instance Methods[hide private]
+
+   + + + + + + +
__init__(self, + policyfiles=None, + csvfile=None, + ignoreroot=False)
+ The constructor
+ source code + +
+ +
+   + + + + + + +
load_policy_ids(self, + csvfile)
+ Load the icds from the CSV file.
+ source code + +
+ +
+   + + + + + + +
validate_content(self, + filename)
+ Validating the policy file content.
+ source code + +
+ +
+   + + + + + + +
find_policy(self, + path)
+ find the policy file under path using filenames under the list.
+ source code + +
+ +
+   + + + + + + +
validate(self, + path)
+ Return a list couple [errortype, location, policy].
+ source code + +
+ +
+

Inherited from object: + __delattr__, + __getattribute__, + __hash__, + __new__, + __reduce__, + __reduce_ex__, + __repr__, + __setattr__, + __str__ +

+
+ + + + + + + + + +
+ + + + + +
Properties[hide private]
+
+

Inherited from object: + __class__ +

+
+ + + + + + +
+ + + + + +
Method Details[hide private]
+
+ +
+ +
+ + +
+

__init__(self, + policyfiles=None, + csvfile=None, + ignoreroot=False) +
(Constructor) +

+
source code  +
+ + The constructor +
+
Overrides: + object.__init__ +
+
+
+
+ +
+ +
+ + +
+

load_policy_ids(self, + csvfile) +

+
source code  +
+ + Load the icds from the CSV file. +report format by generating array: ['unknownstatus', value, description] +
+
+
+
+ +
+ +
+ + +
+

validate_content(self, + filename) +

+
source code  +
+ + Validating the policy file content. If it cannot be decoded, +it reports an 'invalidencoding'. +Case 'notinidlist': value is not defined under the id list. +
+
+
+
+ +
+ +
+ + +
+

validate(self, + path) +

+
source code  +
+ + Return a list couple [errortype, location, policy]. +errortype: missing, invalidencoding, notinidlist . +missing: location is a directory. +otherwise the doggie policy file. +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +