Back to index

plone3  3.1.7
Public Member Functions
plone.app.layout.dashboard.dashboard.DashboardView Class Reference
Inheritance diagram for plone.app.layout.dashboard.dashboard.DashboardView:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.dashboard.dashboard.DashboardView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def empty

Detailed Description

Power the dasbhard

Definition at line 12 of file dashboard.py.


Member Function Documentation

Definition at line 17 of file dashboard.py.

00017 
00018     def empty(self):
00019         dashboards = [getUtility(IPortletManager, name=name) for name in
00020                         ['plone.dashboard1', 'plone.dashboard2', 'plone.dashboard3', 'plone.dashboard4']]
00021                         
00022         portal_membership = getToolByName(self.context, 'portal_membership')
00023         userid = portal_membership.getAuthenticatedMember().getId()
00024                         
00025         num_portlets = 0
00026         for dashboard in dashboards:
00027             num_portlets += len(dashboard.get(USER_CATEGORY, {}).get(userid, {}))
00028         return num_portlets == 0

Here is the call graph for this function:


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