Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.portlets.portlets.navigation.AddForm Class Reference
Inheritance diagram for plone.app.portlets.portlets.navigation.AddForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portlets.navigation.AddForm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def create
def __call__
def referer
def nextURL
def handle_save_action
def handle_cancel_action

Static Public Attributes

tuple form_fields = form.Fields(INavigationPortlet)
tuple label = _(u"Add Navigation Portlet")
tuple description = _(u"This portlet display a navigation tree.")
tuple form_name = _(u"Configure portlet")
 validator = null_validator,
string name = u'cancel'

Detailed Description

Definition at line 211 of file navigation.py.


Member Function Documentation

Definition at line 51 of file formhelper.py.

00051 
00052     def __call__(self):
00053         IPortletPermissionChecker(aq_parent(aq_inner(self.context)))()
00054         return super(AddForm, self).__call__()
    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 217 of file navigation.py.

00217 
00218     def create(self, data):
00219         return Assignment(name=data.get('name', u""),
00220                           root=data.get('root', u""),
00221                           currentFolderOnly=data.get('currentFolderOnly', False),
00222                           includeTop=data.get('includeTop', False),
00223                           topLevel=data.get('topLevel', 0),
00224                           bottomLevel=data.get('bottomLevel', 0))

Here is the caller graph for this function:

def plone.app.portlets.browser.formhelper.AddForm.handle_cancel_action (   self,
  action,
  data 
) [inherited]

Definition at line 75 of file formhelper.py.

00075 
00076     def handle_cancel_action(self, action, data):
00077         nextURL = self.nextURL()
00078         if nextURL:
00079             self.request.response.redirect(self.nextURL())
00080         return ''
        

Here is the call graph for this function:

def plone.app.portlets.browser.formhelper.AddForm.handle_save_action (   self,
  action,
  data 
) [inherited]

Definition at line 69 of file formhelper.py.

00069 
00070     def handle_save_action(self, action, data):
00071         self.createAndAdd(data)

Definition at line 58 of file formhelper.py.

00058 
00059     def nextURL(self):
00060         referer = self.request.form.get('referer')
00061         if referer:
00062             return referer
00063         else:
00064             addview = aq_parent(aq_inner(self.context))
00065             context = aq_parent(aq_inner(addview))
00066             url = str(getMultiAdapter((context, self.request), name=u"absolute_url"))
00067             return url + '/@@manage-portlets'
    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 55 of file formhelper.py.

00055 
00056     def referer(self):
00057         return self.request.get('referer', '')


Member Data Documentation

tuple plone.app.portlets.portlets.navigation.AddForm.description = _(u"This portlet display a navigation tree.") [static]

Definition at line 215 of file navigation.py.

Definition at line 212 of file navigation.py.

tuple plone.app.portlets.browser.formhelper.AddForm.form_name = _(u"Configure portlet") [static, inherited]

Definition at line 49 of file formhelper.py.

tuple plone.app.portlets.portlets.navigation.AddForm.label = _(u"Add Navigation Portlet") [static]

Definition at line 214 of file navigation.py.

string plone.app.portlets.browser.formhelper.AddForm.name = u'cancel' [static, inherited]

Definition at line 74 of file formhelper.py.

plone.app.portlets.browser.formhelper.AddForm.validator = null_validator, [static, inherited]

Definition at line 73 of file formhelper.py.


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