Back to index

plone3  3.1.7
Public Member Functions
plone.app.portlets.browser.manage.ManageContentTypePortlets Class Reference
Inheritance diagram for plone.app.portlets.browser.manage.ManageContentTypePortlets:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.browser.manage.ManageContentTypePortlets:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def category
def key
def getAssignmentMappingUrl
def getAssignmentsForManager
def portal_type
def portal_type_icon
def fti

Detailed Description

Definition at line 178 of file manage.py.


Constructor & Destructor Documentation

Definition at line 181 of file manage.py.

00181 
00182     def __init__(self, context, request):
00183         super(ManageContentTypePortlets, self).__init__(context, request)
00184         self.request.set('disable_border', True)
        

Here is the caller graph for this function:


Member Function Documentation

Definition at line 188 of file manage.py.

00188 
00189     def category(self):
00190         return CONTENT_TYPE_CATEGORY
        

Definition at line 221 of file manage.py.

00221 
00222     def fti(self):
00223         portal_types = getToolByName(aq_inner(self.context), 'portal_types')
00224         portal_type = self.request['key']
00225         for fti in portal_types.listTypeInfo():
00226             if fti.getId() == portal_type:
00227                 return fti
                

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 195 of file manage.py.

00195 
00196     def getAssignmentMappingUrl(self, manager):
00197         baseUrl = str(getMultiAdapter((self.context, self.request), name='absolute_url'))
00198         pt = self.request['key']
00199         return '%s/++contenttypeportlets++%s+%s' % (baseUrl, manager.__name__, pt)

Here is the call graph for this function:

Definition at line 200 of file manage.py.

00200 
00201     def getAssignmentsForManager(self, manager):
00202         pt = self.request['key']
00203         column = getUtility(IPortletManager, name=manager.__name__)
00204         category = column[CONTENT_TYPE_CATEGORY]
00205         mapping = category.get(pt, None)
00206         if mapping is None:
00207             mapping = category[pt] = PortletAssignmentMapping(manager=manager.__name__,
00208                                                               category=CONTENT_TYPE_CATEGORY,
00209                                                               name=pt)
00210         return mapping.values()
    

Definition at line 192 of file manage.py.

00192 
00193     def key(self):
00194         return self.request['key']
    

Here is the caller graph for this function:

Definition at line 213 of file manage.py.

00213 
00214     def portal_type(self):
00215         return self.fti().Title()
                

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 216 of file manage.py.

00216 
00217     def portal_type_icon(self):
00218         ploneview = getMultiAdapter((self.context, self.request), name=u"plone")
00219         return ploneview.getIcon(self.fti())
           

Here is the call graph for this function:


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