Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions 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/')

Private Member Functions

def _context

Detailed Description

A renderer for the column portlets

Definition at line 36 of file

Member Function Documentation

Definition at line 43 of file

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

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:

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]

Definition at line 41 of file

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

Reimplemented in

Definition at line 40 of file

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