Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.portlets.manager.DashboardPortletManagerRenderer Class Reference
Inheritance diagram for plone.app.portlets.manager.DashboardPortletManagerRenderer:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.manager.DashboardPortletManagerRenderer:
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/dashboard-column.pt')
tuple error_message = ViewPageTemplateFile('browser/templates/error_message.pt')

Detailed Description

Render a column of the dashboard

Definition at line 73 of file manager.py.


Member Function Documentation

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:

def plone.app.portlets.manager.ColumnPortletManagerRenderer.safe_render (   self,
  portlet_renderer 
) [inherited]

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, inherited]

Definition at line 41 of file manager.py.

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

Reimplemented from plone.app.portlets.manager.ColumnPortletManagerRenderer.

Definition at line 78 of file manager.py.


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