Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(0)  |  Derive(4)  |  Import(4)

src/p/r/Products.CMFFormController-3.0.3/Products/CMFFormController/Actions/TraverseToAction.py   Products.CMFFormController(Download)
from BaseFormAction import BaseFormAction
import TraverseTo
 
from Products.CMFCore.utils import getToolByName
from Products.CMFFormController.FormController import registerFormAction
class TraverseToAction(BaseFormAction):
 
    def __call__(self, controller_state):
        action = self.getArg(controller_state)
        action_url = None

src/p/r/Products.CMFFormController-3.0.3/Products/CMFFormController/Actions/TraverseTo.py   Products.CMFFormController(Download)
from BaseFormAction import BaseFormAction
 
from Products.CMFFormController.FormController import registerFormAction
from ZPublisher.Publish import call_object, missing_name, dont_publish_class
from ZPublisher.mapply import mapply
class TraverseTo(BaseFormAction):
    def __call__(self, controller_state):
        url = self.getArg(controller_state)
        # see if this is a relative url or an absolute
        if len(urlparse.urlparse(url)[1]) != 0:

src/p/r/Products.CMFFormController-3.0.3/Products/CMFFormController/Actions/RedirectToAction.py   Products.CMFFormController(Download)
from BaseFormAction import BaseFormAction
import RedirectTo
 
from Products.CMFCore.utils import getToolByName
from Products.CMFFormController.FormController import registerFormAction
class RedirectToAction(BaseFormAction):
 
    def __call__(self, controller_state):
        action = self.getArg(controller_state)
        action_url = None

src/p/r/Products.CMFFormController-3.0.3/Products/CMFFormController/Actions/RedirectTo.py   Products.CMFFormController(Download)
from BaseFormAction import BaseFormAction
from Products.CMFFormController.FormController import registerFormAction
from urlparse import urlparse, urljoin
 
def factory(arg):
    """Create a new redirect-to action"""
    return RedirectTo(arg)
 
 
class RedirectTo(BaseFormAction):