Back to index

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

List of all members.

Public Member Functions

def create
def __call__
def nextURL

Detailed Description

Definition at line 51 of file language.py.


Member Function Documentation

Definition at line 90 of file formhelper.py.

00090 
00091     def __call__(self):
00092         IPortletPermissionChecker(aq_parent(aq_inner(self.context)))()
00093         ob = self.create()
00094         zope.event.notify(zope.lifecycleevent.ObjectCreatedEvent(ob))
00095         self.context.add(ob)
00096         nextURL = self.nextURL()
00097         if nextURL:
00098             self.request.response.redirect(self.nextURL())
00099         return ''
    

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from plone.app.portlets.browser.formhelper.NullAddForm.

Definition at line 53 of file language.py.

00053 
00054     def create(self):
00055         return Assignment()

Here is the caller graph for this function:

Definition at line 100 of file formhelper.py.

00100 
00101     def nextURL(self):
00102         referer = self.request.get('referer')
00103         if referer:
00104             return referer
00105         else:
00106             addview = aq_parent(aq_inner(self.context))
00107             context = aq_parent(aq_inner(addview))
00108             url = str(getMultiAdapter((context, self.request), name=u"absolute_url"))
00109             return url + '/@@manage-portlets'
    

Here is the call graph for this function:

Here is the caller graph for this function:


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