Back to index

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

List of all members.

Public Member Functions

def handle_save_action
def handle_cancel_action

Static Public Attributes

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

Detailed Description

An add form with standard Save and Cancel buttons

Definition at line 17 of file base.py.


Member Function Documentation

def plone.app.form.base.AddForm.handle_cancel_action (   self,
  action,
  data 
)

Definition at line 32 of file base.py.

00032 
00033     def handle_cancel_action(self, action, data):
00034         parent = aq_parent(aq_inner(self.context))
00035         self.request.response.redirect(parent.absolute_url())
00036 

Here is the call graph for this function:

def plone.app.form.base.AddForm.handle_save_action (   self,
  action,
  data 
)

Definition at line 26 of file base.py.

00026 
00027     def handle_save_action(self, action, data):
00028         self.createAndAdd(data)
    

Member Data Documentation

plone.app.form.base.AddForm.condition = form.haveInputWidgets, [static]

Definition at line 24 of file base.py.

string plone.app.form.base.AddForm.name = u'save' [static]

Definition at line 25 of file base.py.

plone.app.form.base.AddForm.validator = null_validator, [static]

Definition at line 30 of file base.py.


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