Package rubacon :: Package parsers :: Module RuleParser :: Class RuleParser
[hide private]
[frames] | no frames]

Class RuleParser

source code


Instance Methods [hide private]

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

Static Methods [hide private]
 
parse(aFilename)
Parse the rules defined in the xml to the python data structure and marshal it to ___STORAGE
source code
 
clearStorage() source code
 
getRulesFromStore()
Read the rules from the store
source code
Class Variables [hide private]
  ___STORAGE = 'data/db.rules'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

parse(aFilename)
Static Method

source code 

Parse the rules defined in the xml to the python data structure and marshal it to ___STORAGE

The data structure is a list of rules. Rules are hashes that have the keys name, type, priority and message. As well as keys for subrules and params which are lists with the subsequent entries.