Back to index

plone3  3.1.7
Static Public Attributes | Private Member Functions | Static Private Attributes
GenericSetup.MailHost.exportimport.MailHostXMLAdapter Class Reference
Inheritance diagram for GenericSetup.MailHost.exportimport.MailHostXMLAdapter:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.MailHost.exportimport.MailHostXMLAdapter:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

string name = 'mailhost'

Private Member Functions

def _exportNode
def _importNode

Static Private Attributes

string _LOGGER_ID = 'mailhost'

Detailed Description

XML im- and exporter for MailHost.

Definition at line 26 of file exportimport.py.


Member Function Documentation

Export the object as a DOM node.

Definition at line 37 of file exportimport.py.

00037 
00038     def _exportNode(self):
00039         """Export the object as a DOM node.
00040         """
00041         node = self._getObjectNode('object')
00042         node.setAttribute('smtp_host', str(self.context.smtp_host))
00043         node.setAttribute('smtp_port', str(self.context.smtp_port))
00044         node.setAttribute('smtp_uid', self.context.smtp_uid)
00045         node.setAttribute('smtp_pwd', self.context.smtp_pwd)
00046 
00047         self._logger.info('Mailhost exported.')
00048         return node

Here is the call graph for this function:

Here is the caller graph for this function:

Import the object from the DOM node.

Definition at line 49 of file exportimport.py.

00049 
00050     def _importNode(self, node):
00051         """Import the object from the DOM node.
00052         """
00053         self.context.smtp_host = str(node.getAttribute('smtp_host'))
00054         self.context.smtp_port = int(node.getAttribute('smtp_port'))
00055         self.context.smtp_uid = node.getAttribute('smtp_uid').encode('utf-8')
00056         self.context.smtp_pwd = node.getAttribute('smtp_pwd').encode('utf-8')
00057 
00058         self._logger.info('Mailhost imported.')

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 33 of file exportimport.py.

Definition at line 35 of file exportimport.py.


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