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

All Samples(11)  |  Call(5)  |  Derive(0)  |  Import(6)
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/m/o/mozsvc-0.7/mozsvc/plugin.py   mozsvc(Download)
from zope.interface import providedBy
 
from mozsvc.util import resolve_name
 
 
    """
    kwargs = dict(config.items(section_name))
    klass = resolve_name(kwargs.pop("backend"))
    return klass(**kwargs)
 
        if name.startswith(prefix):
            kwargs[name[len(prefix):]] = value
    klass = resolve_name(kwargs.pop("backend"))
    return klass(**kwargs)
 

src/m/o/mozservices-HEAD/mozsvc/plugin.py   mozservices(Download)
from zope.interface import providedBy
 
from mozsvc.util import resolve_name
 
 
    """
    kwargs = dict(config.items(section_name))
    klass = resolve_name(kwargs.pop("backend"))
    return klass(**kwargs)
 
        if name.startswith(prefix):
            kwargs[name[len(prefix):]] = value
    klass = resolve_name(kwargs.pop("backend"))
    return klass(**kwargs)
 

src/a/p/appsync-HEAD/appsync/storage/mirrored.py   appsync(Download)
from mozsvc.util import resolve_name
from zope.interface import implements
from appsync.storage import IAppSyncDatabase
 
 
    def _backend(self, name, options):
        klass = resolve_name(options[name])
        klass_options = {}
        for key, value in options.items():
            if not key.startswith(name + '.'):

src/m/o/mozservices-HEAD/mozsvc/user/__init__.py   mozservices(Download)
import mozsvc
import mozsvc.secrets
from mozsvc.util import resolve_name
from mozsvc.user.permissivenoncecache import PermissiveNonceCache
 

src/m/o/mozservices-HEAD/mozsvc/tests/test_util.py   mozservices(Download)
import os.path
 
from mozsvc.util import (round_time, resolve_name, maybe_resolve_name,
                         dnslookup)
 

src/m/o/mozsvc-0.7/mozsvc/tests/test_util.py   mozsvc(Download)
import os.path
 
from mozsvc.util import (round_time, resolve_name, maybe_resolve_name,
                         dnslookup)