Did I find the right examples for you? yes no

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

src/c/o/collective.multimodeview-0.2/collective/multimodeview/browser/view.py   collective.multimodeview(Download)
    def __init__(self, *args, **kwargs):
        super(MultiModeView, self).__init__(*args, **kwargs)
        self.set_mode(self.request.form.get('mode', ''))
 
    def __call__(self):

src/c/o/collective.multimodeview-HEAD/collective/multimodeview/browser/view.py   collective.multimodeview(Download)
    def __init__(self, *args, **kwargs):
        super(MultiModeView, self).__init__(*args, **kwargs)
        self.set_mode(self.request.form.get('mode', ''))
 
    def __call__(self):

src/c/o/collective.multimodeview-0.2/collective/multimodeview/browser/viewlet.py   collective.multimodeview(Download)
        # id has been provided.
        if form.get('widget_id') == self.widget_id:
            self.set_mode(form.get('mode'))
        else:
            self.mode = self.default_mode

src/c/o/collective.multimodeview-HEAD/collective/multimodeview/browser/viewlet.py   collective.multimodeview(Download)
        # id has been provided.
        if form.get('widget_id') == self.widget_id:
            self.set_mode(form.get('mode'))
        else:
            self.mode = self.default_mode