Did I find the right examples for you? yes no

All Samples(10)  |  Call(0)  |  Derive(8)  |  Import(2)

src/c/o/collective.multimodeview-0.2/collective/multimodeview/samples/views.py   collective.multimodeview(Download)
from collective.multimodeview.browser import MultiModeView
 
class Sample1View(MultiModeView):
    """ A simple view with two modes.
    """
class Sample2View(MultiModeView):
    """ A view that adds annotations on the portal.
    """
    modes = ['list',
             'add',
class Sample3View(MultiModeView):
    modes = {'step1': {'submit_label': 'Go to step 2'},
             'step2': {'submit_label': 'Go to step 3'},
             'step3': {'submit_label': 'Go to step 4'},
             'step4': {'submit_label': 'Go to step 5'},
class Sample31View(MultiModeView):
    modes = {'step1': {'submit_label': 'Go to step 2',
                       'cancel_label': 'Cancel',
                       'success_mode': 'step2',
                       'cancel_mode': 'step1',

src/c/o/collective.multimodeview-HEAD/collective/multimodeview/samples/views.py   collective.multimodeview(Download)
from collective.multimodeview.browser import MultiModeView
 
class Sample1View(MultiModeView):
    """ A simple view with two modes.
    """
class Sample2View(MultiModeView):
    """ A view that adds annotations on the portal.
    """
    modes = ['list',
             'add',
class Sample3View(MultiModeView):
    modes = {'step1': {'submit_label': 'Go to step 2'},
             'step2': {'submit_label': 'Go to step 3'},
             'step3': {'submit_label': 'Go to step 4'},
             'step4': {'submit_label': 'Go to step 5'},
class Sample31View(MultiModeView):
    modes = {'step1': {'submit_label': 'Go to step 2',
                       'cancel_label': 'Cancel',
                       'success_mode': 'step2',
                       'cancel_mode': 'step1',