Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Resolve dotted name into a python object.

This function resolves a dotted name as a reference to a python object,
returning whatever object happens to live at that path.  It's a simple
convenience wrapper around pyramid's DottedNameResolver.

The optional argument 'package' specifies the package name for relative
imports.  If not specified, only absolute paths will be supported.

        def resolve_name(name, package=None):
    """Resolve dotted name into a python object.

    This function resolves a dotted name as a reference to a python object,
    returning whatever object happens to live at that path.  It's a simple
    convenience wrapper around pyramid's DottedNameResolver.

    The optional argument 'package' specifies the package name for relative
    imports.  If not specified, only absolute paths will be supported.
    """
    return DottedNameResolver(package).resolve(name)
        


src/s/e/server-syncstorage-HEAD/syncstorage/storage/__init__.py   server-syncstorage(Download)
import abc
 
from mozsvc.plugin import resolve_name
from pyramid.threadlocal import get_current_registry
 
    """
    section_settings = settings.getsection(section_name)
    klass = resolve_name(section_settings.pop("backend"))
    wraps = section_settings.pop("wraps", None)
    if wraps is None: