Back to index

plone3  3.1.7
Functions | Variables
CMFQuickInstallerTool.utils Namespace Reference

Functions

def updatelist
def delObjects

Variables

tuple logger = logging.getLogger('CMFQuickInstallerTool')

Function Documentation

def CMFQuickInstallerTool.utils.delObjects (   cont,
  ids 
)
abbreviation to delete objects 

Definition at line 17 of file utils.py.

00017 
00018 def delObjects(cont, ids):
00019     """ abbreviation to delete objects """
00020     delids=[id for id in ids if hasattr(aq_base(cont),id)]
00021     for delid in delids:
00022         try:
00023             cont.manage_delObjects(delid)
00024         except (AttributeError, KeyError, BadRequest):
00025             logger.warning("Failed to delete '%s' in '%s'" % (delid, cont.id))

Here is the caller graph for this function:

def CMFQuickInstallerTool.utils.updatelist (   a,
  b,
  c = None 
)

Definition at line 8 of file utils.py.

00008 
00009 def updatelist(a, b, c=None):
00010     for l in b:
00011         if not l in a:
00012             if c is None:
00013                 a.append(l)
00014             else:
00015                 if not l in c:
00016                     a.append(l)

Here is the caller graph for this function:


Variable Documentation

tuple CMFQuickInstallerTool.utils.logger = logging.getLogger('CMFQuickInstallerTool')

Definition at line 6 of file utils.py.