Did I find the right examples for you? yes no

All Samples(24)  |  Call(16)  |  Derive(0)  |  Import(8)

src/r/h/Rhetoric-0.1.12/rhetoric/config/routes.py   Rhetoric(Download)
from rhetoric.exceptions import ConfigurationError
 
 
class RoutesConfiguratorMixin(object):
    def add_route(self, name, pattern, rules=None, extra_kwargs=None):
            if not viewlist:
                raise ConfigurationError(
                    'Route name "{name}" is not associated with a view callable.'.format(name=route_name)
                )
            for route_item in viewlist:
                if route_item.get('view') is None:
                    raise ConfigurationError(
                        'Route name "{name}" is not associated with a view callable.'.format(name=route_name)

src/r/h/Rhetoric-HEAD/rhetoric/config/routes.py   Rhetoric(Download)
from rhetoric.exceptions import ConfigurationError
 
 
class RoutesConfiguratorMixin(object):
    def add_route(self, name, pattern, rules=None, extra_kwargs=None):
            if not viewlist:
                raise ConfigurationError(
                    'Route name "{name}" is not associated with a view callable.'.format(name=route_name)
                )
            for route_item in viewlist:
                if route_item.get('view') is None:
                    raise ConfigurationError(
                        'Route name "{name}" is not associated with a view callable.'.format(name=route_name)

src/r/h/Rhetoric-0.1.12/rhetoric/config/views.py   Rhetoric(Download)
import inspect
 
from rhetoric.exceptions import ConfigurationError
from rhetoric.util import viewdefaults
 
        except KeyError:
            raise ConfigurationError(
                'No route named {route_name} found for view registration'.format(route_name=route_name)
            )
 
            if len(request_method) > 1 and not form_data:
                raise ConfigurationError(
                    'You must explicitly specify the form_data parameter, because one of the '
                    'view handlers accepts multiple request methods: {route_name}'.format(route_name=route_name)
                )
            if unsupported_methods and not form_data:
                raise ConfigurationError(
                    'You must explicitly specify the form_data parameter, because Django '
                    'does not create form dict for methods {methods}: {route_name}'.format(
                        methods=unsupported_methods,

src/r/h/Rhetoric-HEAD/rhetoric/config/views.py   Rhetoric(Download)
import inspect
 
from rhetoric.exceptions import ConfigurationError
from rhetoric.util import viewdefaults
 
        except KeyError:
            raise ConfigurationError(
                'No route named {route_name} found for view registration'.format(route_name=route_name)
            )
 
            if len(request_method) > 1 and not form_data:
                raise ConfigurationError(
                    'You must explicitly specify the form_data parameter, because one of the '
                    'view handlers accepts multiple request methods: {route_name}'.format(route_name=route_name)
                )
            if unsupported_methods and not form_data:
                raise ConfigurationError(
                    'You must explicitly specify the form_data parameter, because Django '
                    'does not create form dict for methods {methods}: {route_name}'.format(
                        methods=unsupported_methods,

src/r/h/Rhetoric-0.1.12/rhetoric/__init__.py   Rhetoric(Download)
from rhetoric.config.adt import ADTConfiguratorMixin
from rhetoric.path import caller_package
from rhetoric.exceptions import ConfigurationError
from rhetoric.view import view_config
from rhetoric.view import view_defaults
            except AttributeError:
                raise ConfigurationError(
                    "module {} has no attribute 'includeme'".format(module.__name__)
                )
 
        sourcefile = self.inspect.getsourcefile(c)
 
        if sourcefile is None:
            raise ConfigurationError(
                'No source file for module {} (.py file must exist, '

src/r/h/Rhetoric-0.1.12/rhetoric/config/adt.py   Rhetoric(Download)
""" ADT stands for Algebraic data type
"""
from rhetoric.exceptions import ConfigurationError
 
 
                    if implementation is None:
                        raise ConfigurationError(
                            'Case {case_name} of {type} is not exhaustive. '
                            'Here is the variant that is not matched: {variant} '
                            .format(

src/r/h/Rhetoric-HEAD/rhetoric/__init__.py   Rhetoric(Download)
from rhetoric.config.adt import ADTConfiguratorMixin
from rhetoric.path import caller_package
from rhetoric.exceptions import ConfigurationError
from rhetoric.view import view_config
from rhetoric.view import view_defaults
            except AttributeError:
                raise ConfigurationError(
                    "module {} has no attribute 'includeme'".format(module.__name__)
                )
 
        sourcefile = self.inspect.getsourcefile(c)
 
        if sourcefile is None:
            raise ConfigurationError(
                'No source file for module {} (.py file must exist, '

src/r/h/Rhetoric-HEAD/rhetoric/config/adt.py   Rhetoric(Download)
""" ADT stands for Algebraic data type
"""
from rhetoric.exceptions import ConfigurationError
 
 
                    if implementation is None:
                        raise ConfigurationError(
                            'Case {case_name} of {type} is not exhaustive. '
                            'Here is the variant that is not matched: {variant} '
                            .format(