Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.contentrules.conditions.wfstate.WorkflowStateAddForm Class Reference
Inheritance diagram for plone.app.contentrules.conditions.wfstate.WorkflowStateAddForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.conditions.wfstate.WorkflowStateAddForm:
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(IWorkflowStateCondition)
tuple label = _(u"Add Workflow State Condition")
tuple description = _(u"A workflow state condition can restrict rules to objects in particular workflow states")
tuple form_name = _(u"Configure element")
 validator = null_validator,
string name = u'cancel'

Detailed Description

An add form for workflow state conditions.

Definition at line 58 of file wfstate.py.


Member Function Documentation

Definition at line 66 of file wfstate.py.

00066 
00067     def create(self, data):
00068         c = WorkflowStateCondition()
00069         form.applyChanges(c, self.form_fields, data)
00070         return c

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.conditions.wfstate.WorkflowStateAddForm.description = _(u"A workflow state condition can restrict rules to objects in particular workflow states") [static]

Definition at line 63 of file wfstate.py.

Definition at line 61 of file wfstate.py.

Definition at line 64 of file wfstate.py.

tuple plone.app.contentrules.conditions.wfstate.WorkflowStateAddForm.label = _(u"Add Workflow State Condition") [static]

Definition at line 62 of file wfstate.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: