Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.contentrules.actions.workflow.WorkflowAddForm Class Reference
Inheritance diagram for plone.app.contentrules.actions.workflow.WorkflowAddForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.actions.workflow.WorkflowAddForm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def create
def nextURL
def handle_save_action
def handle_cancel_action

Static Public Attributes

tuple form_fields = form.FormFields(IWorkflowAction)
tuple label = _(u"Add Workflow Action")
tuple description = _(u"A workflow action triggers a workflow transition on an object.")
tuple form_name = _(u"Configure element")
 validator = null_validator,
string name = u'cancel'

Detailed Description

An add form for workflow actions.

Definition at line 81 of file workflow.py.


Member Function Documentation

Definition at line 89 of file workflow.py.

00089 
00090     def create(self, data):
00091         a = WorkflowAction()
00092         form.applyChanges(a, self.form_fields, data)
00093         return a

Here is the caller graph for this function:

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

Definition at line 58 of file formhelper.py.

00058 
00059     def handle_cancel_action(self, action, data):
00060         nextURL = self.nextURL()
00061         if nextURL:
00062             self.request.response.redirect(self.nextURL())
00063         return ''
        

Here is the call graph for this function:

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

Definition at line 52 of file formhelper.py.

00052 
00053     def handle_save_action(self, action, data):
00054         self.createAndAdd(data)
    

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

Definition at line 45 of file formhelper.py.

00045 
00046     def nextURL(self):
00047         rule = aq_parent(aq_inner(self.context))
00048         context = aq_parent(aq_inner(rule))
00049         url = str(getMultiAdapter((context, self.request), name=u"absolute_url"))
00050         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

tuple plone.app.contentrules.actions.workflow.WorkflowAddForm.description = _(u"A workflow action triggers a workflow transition on an object.") [static]

Definition at line 86 of file workflow.py.

Definition at line 84 of file workflow.py.

Definition at line 87 of file workflow.py.

tuple plone.app.contentrules.actions.workflow.WorkflowAddForm.label = _(u"Add Workflow Action") [static]

Definition at line 85 of file workflow.py.

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

Definition at line 57 of file formhelper.py.

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

Definition at line 56 of file formhelper.py.


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