Back to index

plone3  3.1.7
Public Member Functions | Static Private Attributes
CMFPlone.InterfaceTool.InterfaceFinder Class Reference

List of all members.

Public Member Functions

def findInterfaces
def found

Static Private Attributes

dictionary _visited = {}
dictionary _found = {}

Detailed Description

Definition at line 158 of file InterfaceTool.py.


Member Function Documentation

def CMFPlone.InterfaceTool.InterfaceFinder.findInterfaces (   self,
  n = None,
  module = _marker 
)

Definition at line 163 of file InterfaceTool.py.

00163 
00164     def findInterfaces(self, n=None, module=_marker):
00165         # return class reference info
00166         dict={}
00167         pairs = []
00168         if module is _marker:
00169             import Products
00170             module = Products
00171         self._visited[module] = None
00172         for sym in dir(module):
00173             ob=getattr(module, sym)
00174             if type(ob) is type(Interface) and \
00175                issubclass(ob, Interface) and \
00176                ob is not Interface:
00177                 self.found(ob)
00178             elif type(ob) is ModuleType and ob not in self._visited.keys():
00179                 self.findInterfaces(module=ob)
00180 
00181         ifaces = self._found.keys()
00182         ifaces.sort()
00183         ifaces.reverse()
00184         if n is not None:
00185             ifaces = ifaces[:n]
00186         return ifaces

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFPlone.InterfaceTool.InterfaceFinder.found (   self,
  iface 
)

Definition at line 187 of file InterfaceTool.py.

00187 
00188     def found(self, iface):
00189         self._found[getDottedName(iface)] = iface
00190 
00191 InitializeClass(InterfaceTool)
00192 registerToolInterface('portal_interface', IInterfaceTool)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

dictionary CMFPlone.InterfaceTool.InterfaceFinder._found = {} [static, private]

Definition at line 161 of file InterfaceTool.py.

dictionary CMFPlone.InterfaceTool.InterfaceFinder._visited = {} [static, private]

Definition at line 160 of file InterfaceTool.py.


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