Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
plone.app.portlets.browser.editmanager.ManagePortletAssignments Class Reference
Inheritance diagram for plone.app.portlets.browser.editmanager.ManagePortletAssignments:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.browser.editmanager.ManagePortletAssignments:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def move_portlet_up
def move_portlet_down
def delete_portlet

Private Member Functions

def _nextUrl

Detailed Description

Utility views for managing portlets for a particular column

Definition at line 176 of file editmanager.py.


Member Function Documentation

Definition at line 218 of file editmanager.py.

00218 
00219     def _nextUrl(self):
00220         referer = self.request.get('referer')
00221         if not referer:
00222             context = aq_parent(aq_inner(self.context))
00223             url = str(getMultiAdapter((context, self.request), name=u"absolute_url"))    
00224             referer = '%s/@@manage-portlets' % (url,)
00225         return referer

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 211 of file editmanager.py.

00211 
00212     def delete_portlet(self, name):
00213         assignments = aq_inner(self.context)
00214         IPortletPermissionChecker(assignments)()
00215         del assignments[name]
00216         self.request.response.redirect(self._nextUrl())
00217         return ''
        

Here is the call graph for this function:

Definition at line 196 of file editmanager.py.

00196 
00197     def move_portlet_down(self, name):
00198         assignments = aq_inner(self.context)
00199         IPortletPermissionChecker(assignments)()
00200         
00201         keys = list(assignments.keys())
00202         
00203         idx = keys.index(name)
00204         keys.remove(name)
00205         keys.insert(idx+1, name)
00206         assignments.updateOrder(keys)
00207         
00208         self.request.response.redirect(self._nextUrl())
00209         return ''
    

Here is the call graph for this function:

Definition at line 181 of file editmanager.py.

00181 
00182     def move_portlet_up(self, name):
00183         assignments = aq_inner(self.context)
00184         IPortletPermissionChecker(assignments)()
00185         
00186         keys = list(assignments.keys())
00187         
00188         idx = keys.index(name)
00189         keys.remove(name)
00190         keys.insert(idx-1, name)
00191         assignments.updateOrder(keys)
00192         
00193         self.request.response.redirect(self._nextUrl())
00194         return ''
    

Here is the call graph for this function:


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