Back to index

plone3  3.1.7
Private Member Functions
CMFCore.src.five.localsitemanager.registry.FiveVerifyingAdapterLookup Class Reference
Inheritance diagram for CMFCore.src.five.localsitemanager.registry.FiveVerifyingAdapterLookup:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.src.five.localsitemanager.registry.FiveVerifyingAdapterLookup:
Collaboration graph
[legend]

List of all members.

Private Member Functions

def _uncached_lookup
def _uncached_lookupAll
def _uncached_subscriptions

Detailed Description

Definition at line 19 of file registry.py.


Member Function Documentation

def CMFCore.src.five.localsitemanager.registry.FiveVerifyingAdapterLookup._uncached_lookup (   self,
  required,
  provided,
  name = u'' 
) [private]

Definition at line 23 of file registry.py.

00023 
00024     def _uncached_lookup(self, required, provided, name=u''):
00025         result = None
00026         order = len(required)
00027         for registry in self._registry.ro:
00028             byorder = registry._adapters
00029             if order >= len(byorder):
00030                 continue
00031 
00032             extendors = registry._v_lookup._extendors.get(provided)
00033             if not extendors:
00034                 continue
00035 
00036             components = byorder[order]
00037             result = _lookup(components, required, extendors, name, 0,
00038                              order)
00039             if result is not None:
00040                 result = _wrap(result, registry)
00041                 break
00042 
00043         self._subscribe(*required)
00044 
00045         return result

Here is the call graph for this function:

Definition at line 46 of file registry.py.

00046 
00047     def _uncached_lookupAll(self, required, provided):
00048         order = len(required)
00049         result = {}
00050         for registry in reversed(self._registry.ro):
00051             byorder = registry._adapters
00052             if order >= len(byorder):
00053                 continue
00054             extendors = registry._v_lookup._extendors.get(provided)
00055             if not extendors:
00056                 continue
00057             components = byorder[order]
00058             tmp_result = {}
00059             _lookupAll(components, required, extendors, tmp_result, 0, order)
00060             for k, v in tmp_result.iteritems():
00061                 tmp_result[k] = _wrap(v, registry)
00062             result.update(tmp_result)
00063 
00064         self._subscribe(*required)
00065 
00066         return tuple(result.iteritems())

Here is the call graph for this function:

Definition at line 67 of file registry.py.

00067 
00068     def _uncached_subscriptions(self, required, provided):
00069         order = len(required)
00070         result = []
00071         for registry in reversed(self._registry.ro):
00072             byorder = registry._subscribers
00073             if order >= len(byorder):
00074                 continue
00075 
00076             if provided is None:
00077                 extendors = (provided, )
00078             else:
00079                 extendors = registry._v_lookup._extendors.get(provided)
00080                 if extendors is None:
00081                     continue
00082 
00083             tmp_result = []
00084             _subscriptions(byorder[order], required, extendors, u'',
00085                            result, 0, order)
00086             result = [ _wrap(r, registry) for r in result ]
00087 
00088         self._subscribe(*required)
00089 
00090         return result
00091 

Here is the call graph for this function:


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