Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.portlets.portletcontext.PortalRootContext Class Reference
Inheritance diagram for plone.app.portlets.portletcontext.PortalRootContext:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portletcontext.PortalRootContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getParent
def uid
def globalPortletCategories

Public Attributes

 context

Detailed Description

A portlet context for the site root.

Definition at line 103 of file portletcontext.py.


Constructor & Destructor Documentation

Reimplemented from plone.app.portlets.portletcontext.ContentContext.

Definition at line 110 of file portletcontext.py.

00110 
00111     def __init__(self, context):
00112         self.context = context

Here is the caller graph for this function:


Member Function Documentation

Reimplemented from plone.app.portlets.portletcontext.ContentContext.

Definition at line 113 of file portletcontext.py.

00113 
00114     def getParent(self):
00115         return None
def plone.app.portlets.portletcontext.ContentContext.globalPortletCategories (   self,
  placeless = False 
) [inherited]

Definition at line 36 of file portletcontext.py.

00036 
00037     def globalPortletCategories(self, placeless=False):
00038         cats = []
00039         if not placeless:
00040             pt = self._getContentType()
00041             if pt is not None:
00042                 cats.append((CONTENT_TYPE_CATEGORY, pt,))
00043         u = self._getUserId()
00044         if u is not None:
00045             cats.append((USER_CATEGORY, u,))
00046         for g in self._getGroupIds():
00047             cats.append((GROUP_CATEGORY, g,))
00048         return cats

Here is the call graph for this function:

Definition at line 30 of file portletcontext.py.

00030 
00031     def uid(self):
00032         return '/'.join(self.context.getPhysicalPath())


Member Data Documentation

Reimplemented from plone.app.portlets.portletcontext.ContentContext.

Definition at line 111 of file portletcontext.py.


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