Back to index

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

List of all members.

Public Member Functions

def base_url
def can_manage_portlets
def safe_render

Static Public Attributes

tuple template = ViewPageTemplateFile('browser/templates/column.pt')
tuple error_message = ViewPageTemplateFile('browser/templates/error_message.pt')

Private Member Functions

def _context

Detailed Description

A renderer for the column portlets

Definition at line 36 of file manager.py.


Member Function Documentation

Definition at line 43 of file manager.py.

00043 
00044     def _context(self):
00045         context = aq_inner(self.context)
00046         if isDefaultPage(context, self.request):
00047             return aq_parent(context)
00048         else:
00049             return context

Here is the call graph for this function:

Here is the caller graph for this function:

If context is a default-page, return URL of folder, else
return URL of context.

Definition at line 50 of file manager.py.

00050 
00051     def base_url(self):
00052         """If context is a default-page, return URL of folder, else
00053         return URL of context.
00054         """
00055         return str(getMultiAdapter((self._context(), self.request,), name=u'absolute_url'))

Here is the call graph for this function:

Definition at line 56 of file manager.py.

00056 
00057     def can_manage_portlets(self):
00058         context = self._context()
00059         if not ILocalPortletAssignable.providedBy(context):
00060             return False
00061         mtool = getToolByName(context, 'portal_membership')
00062         return mtool.checkPermission("Portlets: Manage portlets", context)

Here is the call graph for this function:

Definition at line 63 of file manager.py.

00063 
00064     def safe_render(self, portlet_renderer):
00065         try:
00066             return portlet_renderer.render()
00067         except ConflictError:
00068             raise
00069         except Exception:
00070             logger.exception('Error while rendering %r' % (self,))
00071             aq_acquire(self, 'error_log').raising(sys.exc_info())
00072             return self.error_message()


Member Data Documentation

tuple plone.app.portlets.manager.ColumnPortletManagerRenderer.error_message = ViewPageTemplateFile('browser/templates/error_message.pt') [static]

Definition at line 41 of file manager.py.

tuple plone.app.portlets.manager.ColumnPortletManagerRenderer.template = ViewPageTemplateFile('browser/templates/column.pt') [static]

Reimplemented in plone.app.portlets.manager.DashboardPortletManagerRenderer.

Definition at line 40 of file manager.py.


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