Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.contentrules.browser.formhelper.EditForm Class Reference
Inheritance diagram for plone.app.contentrules.browser.formhelper.EditForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.browser.formhelper.EditForm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def handle_save_action
def handle_cancel_action
def nextURL

Public Attributes

 status

Static Public Attributes

 condition = form.haveInputWidgets,
string name = u'save'
 validator = null_validator,

Detailed Description

An edit form for rule elements.

Definition at line 92 of file formhelper.py.


Member Function Documentation

Definition at line 116 of file formhelper.py.

00116 
00117     def handle_cancel_action(self, action, data):
00118         nextURL = self.nextURL()
00119         if nextURL:
00120             self.request.response.redirect(self.nextURL())
00121         return ''

Here is the call graph for this function:

Definition at line 101 of file formhelper.py.

00101 
00102     def handle_save_action(self, action, data):
00103         if form.applyChanges(self.context, self.form_fields, data, self.adapters):
00104             zope.event.notify(zope.lifecycleevent.ObjectModifiedEvent(self.context))
00105             self.status = "Changes saved"
00106         else:
00107             self.status = "No changes"
00108             
00109         nextURL = self.nextURL()
00110         if nextURL:
00111             self.request.response.redirect(self.nextURL())
00112         return ''
            

Here is the call graph for this function:

Reimplemented in plone.app.contentrules.browser.rule.RuleEditForm.

Definition at line 122 of file formhelper.py.

00122 
00123     def nextURL(self):
00124         element = aq_inner(self.context)
00125         rule = aq_parent(element)
00126         context = aq_parent(rule)
00127         url = str(getMultiAdapter((context, self.request), name=u"absolute_url"))
00128         return '%s/++rule++%s/@@manage-elements' % (url, rule.__name__,)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 99 of file formhelper.py.

Definition at line 100 of file formhelper.py.

Definition at line 104 of file formhelper.py.

Definition at line 114 of file formhelper.py.


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