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 3 of file cacheconfigParser.py.

Constructor & Destructor Documentation

def cacheconfigParser.cacheconfigParser.__init__ (   self)

Member Function Documentation

def cacheconfigParser.cacheconfigParser.handleFrontierConnect (   self,
  dom 
)

Definition at line 9 of file cacheconfigParser.py.

References cacheconfigParser.cacheconfigParser.__parameterDict, and mps_alisetup.append.

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

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

Definition at line 26 of file cacheconfigParser.py.

References cacheconfigParser.cacheconfigParser.handleFrontierConnect().

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

Definition at line 33 of file cacheconfigParser.py.

References cacheconfigParser.cacheconfigParser.handleFrontierConnect().

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

Member Data Documentation

cacheconfigParser.cacheconfigParser.__configfile
private

Definition at line 6 of file cacheconfigParser.py.

cacheconfigParser.cacheconfigParser.__configstr
private

Definition at line 5 of file cacheconfigParser.py.

cacheconfigParser.cacheconfigParser.__parameterDict
private