Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.contentrules.conditions.group.GroupAddForm Class Reference
Inheritance diagram for plone.app.contentrules.conditions.group.GroupAddForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.conditions.group.GroupAddForm:
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(IGroupCondition)
tuple label = _(u"Add Group Condition")
tuple description = _(u"A group condition can prevent a rule from executing unless the current user is a member of a particular group.")
tuple form_name = _(u"Configure element")
 validator = null_validator,
string name = u'cancel'

Detailed Description

An add form for group rule conditions.

Definition at line 66 of file group.py.


Member Function Documentation

Definition at line 74 of file group.py.

00074 
00075     def create(self, data):
00076         c = GroupCondition()
00077         form.applyChanges(c, self.form_fields, data)
00078         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.group.GroupAddForm.description = _(u"A group condition can prevent a rule from executing unless the current user is a member of a particular group.") [static]

Definition at line 71 of file group.py.

Definition at line 69 of file group.py.

tuple plone.app.contentrules.conditions.group.GroupAddForm.form_name = _(u"Configure element") [static]

Definition at line 72 of file group.py.

tuple plone.app.contentrules.conditions.group.GroupAddForm.label = _(u"Add Group Condition") [static]

Definition at line 70 of file group.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: