Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.contentrules.actions.workflow.WorkflowEditForm Class Reference
Inheritance diagram for plone.app.contentrules.actions.workflow.WorkflowEditForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.actions.workflow.WorkflowEditForm:
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

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

Detailed Description

An edit form for workflow rule actions.

Definition at line 94 of file workflow.py.


Member Function Documentation

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

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:

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

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

plone.app.contentrules.browser.formhelper.EditForm.condition = form.haveInputWidgets, [static, inherited]

Definition at line 99 of file formhelper.py.

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

Definition at line 99 of file workflow.py.

Definition at line 97 of file workflow.py.

Definition at line 100 of file workflow.py.

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

Definition at line 98 of file workflow.py.

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

Definition at line 100 of file formhelper.py.

Definition at line 104 of file formhelper.py.

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

Definition at line 114 of file formhelper.py.


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