Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.portlets.browser.traversal.DashboardNamespace Class Reference

List of all members.

Public Member Functions

def __init__
def traverse

Public Attributes

 context
 request

Detailed Description

Used to traverse to a portlet assignable for the current user for
the dashboard.

Definition at line 35 of file traversal.py.


Constructor & Destructor Documentation

def plone.app.portlets.browser.traversal.DashboardNamespace.__init__ (   self,
  context,
  request = None 
)

Definition at line 42 of file traversal.py.

00042 
00043     def __init__(self, context, request=None):
00044         self.context = context
00045         self.request = request
        

Here is the caller graph for this function:


Member Function Documentation

Definition at line 46 of file traversal.py.

00046 
00047     def traverse(self, name, ignore):
00048         col, user = name.split('+')
00049         column = getUtility(IPortletManager, name=col)
00050         category = column[USER_CATEGORY]
00051         manager = category.get(user, None)
00052         if manager is None:
00053             manager = category[user] = UserPortletAssignmentMapping(manager=col,
00054                                                                     category=USER_CATEGORY,
00055                                                                     name=user)
00056                                                                             
00057         # XXX: For graceful migration
00058         if not getattr(manager, '__manager__', None):
00059             manager.__manager__ = col
00060         if not getattr(manager, '__category__', None):
00061             manager.__category__ = USER_CATEGORY
00062         if not getattr(manager, '__name__', None):
00063             manager.__name__ = user
00064         
00065         return manager


Member Data Documentation

Definition at line 43 of file traversal.py.

Definition at line 44 of file traversal.py.


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