Did I find the right examples for you? yes no

All Samples(28)  |  Call(20)  |  Derive(0)  |  Import(8)

        def iscontroller(obj):
    return getattr(obj, 'exposed', False)
        


src/p/e/pecan-0.5.0/pecan/routing.py   pecan(Download)
 
from .secure import handle_security, cross_boundary
from .util import iscontroller
 
__all__ = ['lookup_controller', 'find_object']
        if obj is None:
            raise PecanNotFound
        if iscontroller(obj):
            return obj, remainder
 
            if next_obj == '':
                index = getattr(obj, 'index', None)
                if iscontroller(index):
                    return index, rest
        except IndexError:
            # the URL has hit an index method without a trailing slash
            index = getattr(obj, 'index', None)
            if iscontroller(index):
 
        default = getattr(obj, '_default', None)
        if iscontroller(default):
            notfound_handlers.append(('_default', default, remainder))
 

src/p/e/pecan-HEAD/pecan/routing.py   pecan(Download)
 
from .secure import handle_security, cross_boundary
from .util import iscontroller
 
__all__ = ['lookup_controller', 'find_object']
        if obj is None:
            raise PecanNotFound
        if iscontroller(obj):
            return obj, remainder
 
            if next_obj == '':
                index = getattr(obj, 'index', None)
                if iscontroller(index):
                    return index, rest
        except IndexError:
            # the URL has hit an index method without a trailing slash
            index = getattr(obj, 'index', None)
            if iscontroller(index):
 
        default = getattr(obj, '_default', None)
        if iscontroller(default):
            notfound_handlers.append(('_default', default, remainder))
 

src/p/e/pecan-0.5.0/pecan/hooks.py   pecan(Download)
from webob.exc import HTTPFound
 
from .util import iscontroller, _cfg
from .routing import lookup_controller
 
                continue
 
            if iscontroller(value):
                for hook in hooks:
                    value._pecan.setdefault('hooks', []).append(hook)

src/p/e/pecan-HEAD/pecan/hooks.py   pecan(Download)
from webob.exc import HTTPFound
 
from .util import iscontroller, _cfg
from .routing import lookup_controller
 
                continue
 
            if iscontroller(value):
                for hook in hooks:
                    value._pecan.setdefault('hooks', []).append(hook)

src/p/e/pecan-0.5.0/pecan/rest.py   pecan(Download)
from .decorators import expose
from .routing import lookup_controller, handle_lookup_traversal
from .util import iscontroller
 
 
        # check for lookup controllers
        lookup = getattr(self, '_lookup', None)
        if args and iscontroller(lookup):
            result = handle_lookup_traversal(lookup, args)
            if result:
        for name in args:
            obj = getattr(self, name, None)
            if obj and iscontroller(obj):
                return obj
        return None

src/p/e/pecan-HEAD/pecan/rest.py   pecan(Download)
from .decorators import expose
from .routing import lookup_controller, handle_lookup_traversal
from .util import iscontroller
 
 
        # check for lookup controllers
        lookup = getattr(self, '_lookup', None)
        if args and iscontroller(lookup):
            result = handle_lookup_traversal(lookup, args)
            if result:
        for name in args:
            obj = getattr(self, name, None)
            if obj and iscontroller(obj):
                return obj
        return None

src/p/e/pecan-0.5.0/pecan/secure.py   pecan(Download)
 
from .decorators import expose
from .util import _cfg, iscontroller
 
__all__ = ['unlocked', 'secure', 'SecureController']
        for name, value in getmembers(cls)[:]:
            if (isfunction if six.PY3 else ismethod)(value):
                if iscontroller(value) and value._pecan.get(
                    'secured'
                ) is None:

src/p/e/pecan-HEAD/pecan/secure.py   pecan(Download)
 
from .decorators import expose
from .util import _cfg, iscontroller
 
__all__ = ['unlocked', 'secure', 'SecureController']
        for name, value in getmembers(cls)[:]:
            if (isfunction if six.PY3 else ismethod)(value):
                if iscontroller(value) and value._pecan.get(
                    'secured'
                ) is None: