Beispiel #1
0
def configure(context=None, force=False):

    context = context or {}
    context['restfulpy_root'] = path.dirname(__file__)

    nanohttp_configure(context=context, force=force)
    settings.merge(__builtin_config)
def configure(context=None, force=False):

    context = context or {}

    nanohttp_configure(
        context=context,
        force=force
    )
    settings.merge(__builtin_config)
Beispiel #3
0
def configure(config=None, files=None, context=None, force=False):
    context = context or {}
    nanohttp_configure(context=context, force=force)
    settings.merge(BUILTIN_CONFIGURATION)

    if config:
        settings.merge(config)

    if files:
        for f in files:
            settings.load_file(f)
Beispiel #4
0
def configure(config=None, files=None, context=None, force=False):

    context = context or {}
    context['restfulpy_root'] = path.dirname(__file__)

    nanohttp_configure(context=context, force=force)
    settings.merge(__builtin_config)

    if config:
        settings.merge(config)

    if files:
        for f in files:
            settings.load_files(f)
Beispiel #5
0
def configure(config=None,
              directories=None,
              files=None,
              context=None,
              force=False):  # pragma: no cover

    nanohttp_configure(init_value=__builtin_config,
                       context=context,
                       force=force)

    if config:
        settings.merge(config)

    if directories:
        settings.load_dirs(directories)

    if files:
        settings.load_files(files)