Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.contentrules.actions.copy.CopyAddForm Class Reference
Inheritance diagram for plone.app.contentrules.actions.copy.CopyAddForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.actions.copy.CopyAddForm:
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(ICopyAction)
tuple label = _(u"Add Copy Action")
tuple description = _(u"A copy action can copy an object to a different folder.")
tuple form_name = _(u"Configure element")
 validator = null_validator,
string name = u'cancel'

Detailed Description

An add form for move-to-folder actions.

Definition at line 131 of file copy.py.


Member Function Documentation

Definition at line 140 of file copy.py.

00140 
00141     def create(self, data):
00142         a = CopyAction()
00143         form.applyChanges(a, self.form_fields, data)
00144         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.copy.CopyAddForm.description = _(u"A copy action can copy an object to a different folder.") [static]

Definition at line 137 of file copy.py.

Definition at line 134 of file copy.py.

tuple plone.app.contentrules.actions.copy.CopyAddForm.form_name = _(u"Configure element") [static]

Definition at line 138 of file copy.py.

tuple plone.app.contentrules.actions.copy.CopyAddForm.label = _(u"Add Copy Action") [static]

Definition at line 136 of file copy.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: