Back to index

plone3  3.1.7
Classes | Functions
ATContentTypes.exportimport.atcttool Namespace Reference

Classes

class  ATCTToolXMLAdapter

Functions

def safeGetAttribute
def importATCTTool
def exportATCTTool

Function Documentation

Export ATCT Tool configuration.

Definition at line 154 of file atcttool.py.

00154 
00155 def exportATCTTool(context):
00156     """Export ATCT Tool configuration.
00157     """
00158     site = context.getSite()
00159     tool = getToolByName(site, 'portal_atct', None)
00160     if tool is None:
00161         logger = context.getLogger("atcttool")
00162         logger.info("Nothing to export.")
00163         return
00164 
00165     exportObjects(tool, '', context)

Here is the call graph for this function:

Import ATCT Tool configuration.

Definition at line 146 of file atcttool.py.

00146 
00147 def importATCTTool(context):
00148     """Import ATCT Tool configuration.
00149     """
00150     site = context.getSite()
00151     tool = getToolByName(site, 'portal_atct')
00152 
00153     importObjects(tool, '', context)

Here is the call graph for this function:

Get an attribute froma node, but return None if it does not exist.

Definition at line 8 of file atcttool.py.

00008 
00009 def safeGetAttribute(node, attribute):
00010     """Get an attribute froma node, but return None if it does not exist.
00011     """
00012     if not node.hasAttribute(attribute):
00013         return None
00014     else:
00015         return node.getAttribute(attribute)
00016 

Here is the caller graph for this function: