Back to index

plone3  3.1.7
Public Member Functions
CMFFormController.Actions.RedirectTo.RedirectTo Class Reference
Inheritance diagram for CMFFormController.Actions.RedirectTo.RedirectTo:
Inheritance graph
Collaboration diagram for CMFFormController.Actions.RedirectTo.RedirectTo:
Collaboration graph

List of all members.

Public Member Functions

def __call__

Detailed Description

Definition at line 10 of file

Member Function Documentation

def CMFFormController.Actions.RedirectTo.RedirectTo.__call__ (   self,

Definition at line 11 of file

00012     def __call__(self, controller_state):
00013         url = self.getArg(controller_state)
00014         context = controller_state.getContext()
00015         # see if this is a relative url or an absolute
00016         if len(urlparse(url)[1]) == 0:
00017             # No host specified, so url is relative.  Get an absolute url.
00018             url = urljoin(context.absolute_url()+'/', url)
00019         url = self.updateQuery(url, controller_state.kwargs)
00020         return context.REQUEST.RESPONSE.redirect(url)
00023 registerFormAction('redirect_to',
00024                    factory,
00025                    'Redirect to the URL specified in the argument (a TALES expression).  The URL can either be absolute or relative.')

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: