Back to index

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

List of all members.

Public Member Functions

def __init__
def traverse

Public Attributes

 context
 request

Detailed Description

Used to traverse to a content type portlet assignable

Definition at line 96 of file traversal.py.


Constructor & Destructor Documentation

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

Definition at line 102 of file traversal.py.

00102 
00103     def __init__(self, context, request=None):
00104         self.context = context
00105         self.request = request
        

Here is the caller graph for this function:


Member Function Documentation

Definition at line 106 of file traversal.py.

00106 
00107     def traverse(self, name, ignore):
00108         col, pt = name.split('+')
00109         column = getUtility(IPortletManager, name=col)
00110         category = column[CONTENT_TYPE_CATEGORY]
00111         manager = category.get(pt, None)
00112         if manager is None:
00113             manager = category[pt] = PortletAssignmentMapping(manager=col,
00114                                                               category=CONTENT_TYPE_CATEGORY,
00115                                                               name=pt)
00116         
00117         # XXX: For graceful migration
00118         if not getattr(manager, '__manager__', None):
00119             manager.__manager__ = col
00120         if not getattr(manager, '__category__', None):
00121             manager.__category__ = CONTENT_TYPE_CATEGORY
00122         if not getattr(manager, '__name__', None):
00123             manager.__name__ = pt
00124         
00125         return manager

Member Data Documentation

Definition at line 103 of file traversal.py.

Definition at line 104 of file traversal.py.


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