Back to index

plone3  3.1.7
Private Member Functions
GenericSetup.utils.MarkerInterfaceHelpers Class Reference

List of all members.

Private Member Functions

def _extractMarkers
def _purgeMarkers
def _initMarkers

Detailed Description

Marker interface im- and export helpers.

Definition at line 759 of file utils.py.


Member Function Documentation

Definition at line 764 of file utils.py.

00764 
00765     def _extractMarkers(self):
00766         fragment = self._doc.createDocumentFragment()
00767         adapted = IMarkerInterfaces(self.context)
00768 
00769         for marker_id in adapted.getDirectlyProvidedNames():
00770             node = self._doc.createElement('marker')
00771             node.setAttribute('name', marker_id)
00772             fragment.appendChild(node)
00773 
00774         return fragment

Here is the call graph for this function:

def GenericSetup.utils.MarkerInterfaceHelpers._initMarkers (   self,
  node 
) [private]

Definition at line 778 of file utils.py.

00778 
00779     def _initMarkers(self, node):
00780         markers = []
00781         adapted = IMarkerInterfaces(self.context)
00782 
00783         for child in node.childNodes:
00784             if child.nodeName != 'marker':
00785                 continue
00786             markers.append(str(child.getAttribute('name')))
00787 
00788         adapted.update(adapted.dottedToInterfaces(markers))
00789 

Here is the call graph for this function:

Definition at line 775 of file utils.py.

00775 
00776     def _purgeMarkers(self):
00777         directlyProvides(self.context)

Here is the call graph for this function:


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