Package Products :: Package ZenRelations :: Module ImportRM :: Class ImportRM
[show private | hide private]
[frames | no frames]

Class ImportRM

 ContentHandler --+
                  |
CmdBase --+       |
          |       |
  ZenDaemon --+   |
              |   |
       ZCmdBase --+
                  |
                 ImportRM

Known Subclasses:
XmlDataLoader

Method Summary
  addLink(self, rel, objid)
build list of links to form after all objects have been created make sure that we don't add other side of a bidirectional relation
  buildOptions(self)
basic options setup sub classes can add more options here
  characters(self, chars)
  cleanattrs(self, attrs)
  commit(self)
  context(self)
  createObject(self, attrs)
create an object and set it into its container
  endElement(self, name)
Signals the end of an element in non-namespace mode.
  loadDatabase(self)
The default behavior of loadObjectFromXML() will be to use the Zope app object, and thus operatate on the whole of Zenoss.
  loadObjectFromXML(self, objstack, xmlfile)
This method can be used to load data for the root of Zenoss (default behavior) or it can be used to operate on a specific point in the Zenoss hierarchy (ZODB).
  processLinks(self)
walk through all the links that we saved and link them up
  setProperty(self, obj, attrs, value)
Set the value of a property on an object.
  startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
Inherited from ZCmdBase: __init__, closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging, sigTerm
Inherited from CmdBase: buildParser, parseOptions
Inherited from ContentHandler: endDocument, endElementNS, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElementNS, startPrefixMapping

Class Variable Summary
str rootpath = ''
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging

Method Details

addLink(self, rel, objid)

build list of links to form after all objects have been created make sure that we don't add other side of a bidirectional relation

buildOptions(self)

basic options setup sub classes can add more options here
Overrides:
Products.ZenUtils.ZCmdBase.ZCmdBase.buildOptions

createObject(self, attrs)

create an object and set it into its container

endElement(self, name)

Signals the end of an element in non-namespace mode.

The name parameter contains the name of the element type, just as with the startElement event.
Overrides:
xml.sax.handler.ContentHandler.endElement (inherited documentation)

loadDatabase(self)

The default behavior of loadObjectFromXML() will be to use the Zope app object, and thus operatate on the whole of Zenoss.

loadObjectFromXML(self, objstack=None, xmlfile='')

This method can be used to load data for the root of Zenoss (default behavior) or it can be used to operate on a specific point in the Zenoss hierarchy (ZODB).

Upon loading the XML file to be processed, the content of the XML file is handled (processed) by the methods in this class.

processLinks(self)

walk through all the links that we saved and link them up

setProperty(self, obj, attrs, value)

Set the value of a property on an object.

startElement(self, name, attrs)

Signals the start of an element in non-namespace mode.

The name parameter contains the raw XML 1.0 name of the element type as a string and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.
Overrides:
xml.sax.handler.ContentHandler.startElement (inherited documentation)

Class Variable Details

rootpath

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 http://epydoc.sf.net