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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
Given a list of dotted import paths or Proc subclasses
populates the procs list.

Example::

    load_procs('mysite.procs.WorkerCeleryProc',
               'mysite.proc.ThumbnailsRQProc')
    load_procs(worker_rq_proc)
    load_procs('mysite.proc.worker_rq_proc')

        def load_procs(*procs):
    """
    Given a list of dotted import paths or Proc subclasses
    populates the procs list.

    Example::

        load_procs('mysite.procs.WorkerCeleryProc',
                   'mysite.proc.ThumbnailsRQProc')
        load_procs(worker_rq_proc)
        load_procs('mysite.proc.worker_rq_proc')

    """
    for obj in procs:
        proc = load_proc(obj)
        if proc.name in loaded_procs:
            raise ValueError('Given proc %r overlaps with '
                             'another already loaded proc (%r)' %
                             (proc, loaded_procs[proc.name]))
        loaded_procs[proc.name] = proc
    return loaded_procs
        


src/h/i/HireFire-0.2/hirefire/contrib/tornado/handlers.py   HireFire(Download)
import tornado.web
 
from hirefire.procs import load_procs
from hirefire.utils import TimeAwareJSONEncoder
 
    test_path = r'^/hirefire/test/?$'
    info_path = r'^/hirefire/%s/info/?$' % re.escape(token)
    HireFireInfoHandler.loaded_procs = load_procs(*procs)
    handlers = [
        (test_path, HireFireTestHandler),

src/h/i/hirefire-HEAD/hirefire/contrib/tornado/handlers.py   hirefire(Download)
import tornado.web
 
from hirefire.procs import load_procs
from hirefire.utils import TimeAwareJSONEncoder
 
    test_path = r'^/hirefire/test/?$'
    info_path = r'^/hirefire/%s/info/?$' % re.escape(token)
    HireFireInfoHandler.loaded_procs = load_procs(*procs)
    handlers = [
        (test_path, HireFireTestHandler),

src/h/i/HireFire-0.2/hirefire/contrib/django/middleware.py   HireFire(Download)
    test_path = re.compile(r'^/hirefire/test/?$')
    info_path = re.compile(r'^/hirefire/%s/info/?$' % re.escape(TOKEN))
    loaded_procs = procs.load_procs(*PROCS)
 
    def test(self, request):

src/h/i/hirefire-HEAD/hirefire/contrib/django/middleware.py   hirefire(Download)
    test_path = re.compile(r'^/hirefire/test/?$')
    info_path = re.compile(r'^/hirefire/%s/info/?$' % re.escape(TOKEN))
    loaded_procs = procs.load_procs(*PROCS)
 
    def test(self, request):