Back to index

plone3  3.1.7
Public Member Functions
plone.app.portlets.tests.utils.FooPortletManager Class Reference
Inheritance diagram for plone.app.portlets.tests.utils.FooPortletManager:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.tests.utils.FooPortletManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __call__
def getAddablePortletTypes

Detailed Description

Definition at line 10 of file utils.py.


Member Function Documentation

def plone.portlets.manager.PortletManager.__call__ (   self,
  context,
  request,
  view 
) [inherited]

Definition at line 137 of file manager.py.

00137 
00138     def __call__(self, context, request, view):
00139         return getMultiAdapter((context, request, view, self), IPortletManagerRenderer)

Here is the caller graph for this function:

Definition at line 140 of file manager.py.

00140 
00141     def getAddablePortletTypes(self):
00142        addable = []
00143        for p in getUtilitiesFor(IPortletType):
00144            #BBB - first condition, because starting with Plone 3.1
00145            #every p[1].for_ should be a list
00146            if not isinstance(p[1].for_, list):
00147                logger.warning("Deprecation Warning Portlet type " + \
00148                  "%s is using a deprecated format for " % p[1].addview + \
00149                  "storing interfaces of portlet managers where it is " + \
00150                  "addable. Its for_ attribute should be a list of portlet " + \
00151                  "manager interfaces, using [zope.interface.Interface] " + \
00152                  "for the portlet type to be addable anywhere. The old " + \
00153                  "format will be unsupported in Plone 4.0.")
00154                if p[1].for_ is None or p[1].for_.providedBy(self):
00155                    addable.append(p[1])
00156            elif [i for i in p[1].for_ if i.providedBy(self)]:
00157                addable.append(p[1])
00158        return addable

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