Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

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/')
tuple error_message = ViewPageTemplateFile('browser/templates/')

Detailed Description

Render a column of the dashboard

Definition at line 73 of file

Member Function Documentation

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

Definition at line 50 of file

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

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 (   self,
) [inherited]

Definition at line 63 of file

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 = ViewPageTemplateFile('browser/templates/') [static, inherited]

Definition at line 41 of file

tuple = ViewPageTemplateFile('browser/templates/') [static]

Reimplemented from

Definition at line 78 of file

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