Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.portlets.portlets.rss.AddForm Class Reference
Inheritance diagram for plone.app.portlets.portlets.rss.AddForm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portlets.rss.AddForm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def create
def __call__
def referer
def nextURL
def handle_save_action
def handle_cancel_action

Static Public Attributes

tuple form_fields = form.Fields(IRSSPortlet)
tuple label = _(u"Add RSS Portlet")
tuple description = _(u"This portlet displays an RSS feed.")
tuple form_name = _(u"Configure portlet")
 validator = null_validator,
string name = u'cancel'

Detailed Description

Definition at line 290 of file rss.py.


Member Function Documentation

Definition at line 51 of file formhelper.py.

00051 
00052     def __call__(self):
00053         IPortletPermissionChecker(aq_parent(aq_inner(self.context)))()
00054         return super(AddForm, self).__call__()
    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 296 of file rss.py.

00296 
00297     def create(self, data):
00298         return Assignment(count=data.get('count', 5),
00299                           url = data.get('url',''),
00300                           timeout = data.get('timeout',100))

Here is the caller graph for this function:

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

Definition at line 75 of file formhelper.py.

00075 
00076     def handle_cancel_action(self, action, data):
00077         nextURL = self.nextURL()
00078         if nextURL:
00079             self.request.response.redirect(self.nextURL())
00080         return ''
        

Here is the call graph for this function:

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

Definition at line 69 of file formhelper.py.

00069 
00070     def handle_save_action(self, action, data):
00071         self.createAndAdd(data)

Definition at line 58 of file formhelper.py.

00058 
00059     def nextURL(self):
00060         referer = self.request.form.get('referer')
00061         if referer:
00062             return referer
00063         else:
00064             addview = aq_parent(aq_inner(self.context))
00065             context = aq_parent(aq_inner(addview))
00066             url = str(getMultiAdapter((context, self.request), name=u"absolute_url"))
00067             return url + '/@@manage-portlets'
    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 55 of file formhelper.py.

00055 
00056     def referer(self):
00057         return self.request.get('referer', '')


Member Data Documentation

tuple plone.app.portlets.portlets.rss.AddForm.description = _(u"This portlet displays an RSS feed.") [static]

Definition at line 293 of file rss.py.

Definition at line 291 of file rss.py.

tuple plone.app.portlets.browser.formhelper.AddForm.form_name = _(u"Configure portlet") [static, inherited]

Definition at line 49 of file formhelper.py.

tuple plone.app.portlets.portlets.rss.AddForm.label = _(u"Add RSS Portlet") [static]

Definition at line 292 of file rss.py.

string plone.app.portlets.browser.formhelper.AddForm.name = u'cancel' [static, inherited]

Definition at line 74 of file formhelper.py.

plone.app.portlets.browser.formhelper.AddForm.validator = null_validator, [static, inherited]

Definition at line 73 of file formhelper.py.


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