Back to index

plone3  3.1.7
Public Member Functions | Static Private Attributes
plone.portlets.manager.PortletManager Class Reference
Inheritance diagram for plone.portlets.manager.PortletManager:
Inheritance graph
[legend]
Collaboration diagram for plone.portlets.manager.PortletManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __call__
def getAddablePortletTypes

Static Private Attributes

 __name__ = __parent__None

Detailed Description

Default implementation of the portlet manager.

Provides the functionality that allows the portlet manager to act as an
adapter factory.

Definition at line 126 of file manager.py.


Member Function Documentation

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

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

Member Data Documentation

plone.portlets.manager.PortletManager.__name__ = __parent__None [static, private]

Definition at line 135 of file manager.py.


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