SAFplus Runtime Director API  3.0.5
xml2dict Namespace Reference

Classes

class  VersionMismatch
 
class  BadConfigFile
 

Functions

def decode_file
 The version (ver) should be a quadruple (Major, minor, patch, bugfix) the file must match the major and minor version exactly and be greater than the patch version (i.e. More...
 
def decode_string
 
def insertTag
 
def decode_dom
 
def Test
 
def TestVer
 

Variables

tuple vparse = re.compile("(\d+)\.(\d+)\.(\d+)\.(\d+)")
 

Function Documentation

def xml2dict.decode_dom (   dom)
def xml2dict.decode_file (   file,
  type = None,
  ver = None 
)

The version (ver) should be a quadruple (Major, minor, patch, bugfix) the file must match the major and minor version exactly and be greater than the patch version (i.e.

patches must be backwards compat) bugfix can be anything (i.e. must be completely compatible)

If you do not pass a type or a version, then version checking will not be done.

def xml2dict.decode_string (   str)
def xml2dict.insertTag (   d,
  key,
  val 
)
def xml2dict.Test ( )
def xml2dict.TestVer ( )

Variable Documentation

tuple xml2dict.vparse = re.compile("(\d+)\.(\d+)\.(\d+)\.(\d+)")