CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cacheconfigParser.cacheconfigParser Class Reference
Inheritance diagram for cacheconfigParser.cacheconfigParser:

Public Member Functions

def __init__ (self)
 
def handleFrontierConnect (self, dom)
 
def parameterdict (self)
 
def parse (self, filename)
 
def parseString (self, strbuff)
 
def proxylist (self)
 
def serverlist (self)
 

Private Attributes

 __configfile
 
 __configstr
 
 __parameterDict
 parse result More...
 

Detailed Description

Definition at line 4 of file cacheconfigParser.py.

Constructor & Destructor Documentation

def cacheconfigParser.cacheconfigParser.__init__ (   self)

Member Function Documentation

def cacheconfigParser.cacheconfigParser.handleFrontierConnect (   self,
  dom 
)

Definition at line 10 of file cacheconfigParser.py.

References cacheconfigParser.cacheconfigParser.__parameterDict, and mps_setup.append.

Referenced by cacheconfigParser.cacheconfigParser.parse(), and cacheconfigParser.cacheconfigParser.parseString().

10  def handleFrontierConnect(self,dom):
11  #print 'handleFrontierConnect'
12  nodelist=dom.getElementsByTagName('frontier-connect')[0].childNodes
13  #print nodelist
14  for node in nodelist:
15  if node.nodeType!=Node.TEXT_NODE and node.nodeType!=Node.COMMENT_NODE:
16  tagname=node.tagName
17  attrs=node.attributes
18  for attrName in attrs.keys():
19  attrNode=attrs.get(attrName)
20  attrValue=attrNode.nodeValue
21  if tagname in self.__parameterDict:
22  self.__parameterDict[tagname].append((attrName,attrValue))
23  else:
24  valuelist=[]
25  valuelist.append((attrName,attrValue))
26  self.__parameterDict[tagname]=valuelist
def cacheconfigParser.cacheconfigParser.parameterdict (   self)
def cacheconfigParser.cacheconfigParser.parse (   self,
  filename 
)
Parse an XML file by name

Definition at line 27 of file cacheconfigParser.py.

References cacheconfigParser.cacheconfigParser.handleFrontierConnect().

27  def parse(self,filename):
28  """
29  Parse an XML file by name
30  """
31  dom=parse(filename)
32  self.handleFrontierConnect(dom)
33  dom.unlink()
def cacheconfigParser.cacheconfigParser.parseString (   self,
  strbuff 
)

Definition at line 34 of file cacheconfigParser.py.

References cacheconfigParser.cacheconfigParser.handleFrontierConnect().

34  def parseString(self,strbuff):
35  dom=parseString(strbuff)
36  self.handleFrontierConnect(dom)
37  dom.unlink()
def cacheconfigParser.cacheconfigParser.proxylist (   self)
def cacheconfigParser.cacheconfigParser.serverlist (   self)

Member Data Documentation

cacheconfigParser.cacheconfigParser.__configfile
private

Definition at line 7 of file cacheconfigParser.py.

cacheconfigParser.cacheconfigParser.__configstr
private

Definition at line 6 of file cacheconfigParser.py.

cacheconfigParser.cacheconfigParser.__parameterDict
private