Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.contentrules.conditions.portaltype.PortalTypeAddForm Class Reference
Inheritance diagram for plone.app.contentrules.conditions.portaltype.PortalTypeAddForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.conditions.portaltype.PortalTypeAddForm:
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(IPortalTypeCondition)
tuple label = _(u"Add Content Type Condition")
tuple description = _(u"A portal type condition makes the rule apply only to certain content types.")
tuple form_name = _(u"Configure element")
 validator = null_validator,
string name = u'cancel'

Detailed Description

An add form for portal type conditions.

Definition at line 70 of file portaltype.py.


Member Function Documentation

Definition at line 78 of file portaltype.py.

00078 
00079     def create(self, data):
00080         c = PortalTypeCondition()
00081         form.applyChanges(c, self.form_fields, data)
00082         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.portaltype.PortalTypeAddForm.description = _(u"A portal type condition makes the rule apply only to certain content types.") [static]

Definition at line 75 of file portaltype.py.

Definition at line 73 of file portaltype.py.

Definition at line 76 of file portaltype.py.

tuple plone.app.contentrules.conditions.portaltype.PortalTypeAddForm.label = _(u"Add Content Type Condition") [static]

Definition at line 74 of file portaltype.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: