Back to index

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

List of all members.

Public Member Functions

def __init__
def traverse

Public Attributes

 context
 request

Detailed Description

Used to traverse to a group portlet assignable

Definition at line 66 of file traversal.py.


Constructor & Destructor Documentation

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

Definition at line 72 of file traversal.py.

00072 
00073     def __init__(self, context, request=None):
00074         self.context = context
00075         self.request = request
        

Here is the caller graph for this function:


Member Function Documentation

Definition at line 76 of file traversal.py.

00076 
00077     def traverse(self, name, ignore):
00078         col, group = name.split('+')
00079         column = getUtility(IPortletManager, name=col)
00080         category = column[GROUP_CATEGORY]
00081         manager = category.get(group, None)
00082         if manager is None:
00083             manager = category[group] = PortletAssignmentMapping(manager=col,
00084                                                                  category=GROUP_CATEGORY,
00085                                                                  name=group)
00086         
00087         # XXX: For graceful migration
00088         if not getattr(manager, '__manager__', None):
00089             manager.__manager__ = col
00090         if not getattr(manager, '__category__', None):
00091             manager.__category__ = GROUP_CATEGORY
00092         if not getattr(manager, '__name__', None):
00093             manager.__name__ = group
00094         
00095         return manager


Member Data Documentation

Definition at line 73 of file traversal.py.

Definition at line 74 of file traversal.py.


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