Back to index

moin  1.9.0~rc2
Public Member Functions
fckoutput.BaseXmlMixin Class Reference
Inheritance diagram for fckoutput.BaseXmlMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def createXmlHeader
def createXmlFooter
def sendError
def sendErrorNode

Detailed Description

Definition at line 67 of file fckoutput.py.


Member Function Documentation

Definition at line 85 of file fckoutput.py.

00085 
00086        def createXmlFooter(self):
00087               "Purpose: returns the xml footer"
00088               return """</Connector>"""

def fckoutput.BaseXmlMixin.createXmlHeader (   self,
  command,
  resourceType,
  currentFolder,
  url 
)

Definition at line 68 of file fckoutput.py.

00068 
00069        def createXmlHeader(self, command, resourceType, currentFolder, url):
00070               "Purpose: returns the xml header"
00071               self.setHttpHeaders()
00072               # Create the XML document header
00073               s =  """<?xml version="1.0" encoding="utf-8" ?>"""
00074               # Create the main connector node
00075               s += """<Connector command="%s" resourceType="%s">""" % (
00076                             command,
00077                             resourceType
00078                             )
00079               # Add the current folder node
00080               s += """<CurrentFolder path="%s" url="%s" />""" % (
00081                             convertToXmlAttribute(currentFolder),
00082                             convertToXmlAttribute(url),
00083                             )
00084               return s

Here is the call graph for this function:

def fckoutput.BaseXmlMixin.sendError (   self,
  number,
  text 
)

Definition at line 89 of file fckoutput.py.

00089 
00090        def sendError(self, number, text):
00091               "Purpose: in the event of an error, return an xml based error"
00092               self.setHttpHeaders()
00093               return ("""<?xml version="1.0" encoding="utf-8" ?>""" +
00094                             """<Connector>""" +
00095                             self.sendErrorNode (number, text) +
00096                             """</Connector>""" )

Here is the call graph for this function:

Here is the caller graph for this function:

def fckoutput.BaseXmlMixin.sendErrorNode (   self,
  number,
  text 
)

Definition at line 97 of file fckoutput.py.

00097 
00098        def sendErrorNode(self, number, text):
00099               if number != 1:
00100                      return """<Error number="%s" />""" % (number)
00101               else:
00102                      return """<Error number="%s" text="%s" />""" % (number, convertToXmlAttribute(text))

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: