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

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)
Return the current object.  This is useful if you want the real
object behind the proxy at a time for performance reasons or because
you want to pass the object into a different context.

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/djcelery/schedulers.py   antisocial(Download)
    def __init__(self, model):
        self.app = current_app._get_current_object()
        self.name = model.name
        self.task = model.task
        self.schedule = model.schedule

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/djcelery/app.py   antisocial(Download)
 
#: The Django-Celery app instance.
app = current_app._get_current_object()
 

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/djcelery/schedulers.py   firefox-flicks(Download)
    def __init__(self, model):
        self.app = current_app._get_current_object()
        self.name = model.name
        self.task = model.task
        self.schedule = model.schedule

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/djcelery/app.py   firefox-flicks(Download)
 
#: The Django-Celery app instance.
app = current_app._get_current_object()
 

src/c/e/celery-3.1.11/celery/security/__init__.py   celery(Download)
    if app is None:
        from celery import current_app
        app = current_app._get_current_object()
 
    _disable_insecure_serializers(allowed_serializers)

src/c/e/celery-3.1.11/celery/backends/base.py   celery(Download)
def unpickle_backend(cls, args, kwargs):
    """Return an unpickled backend."""
    return cls(*args, app=current_app._get_current_object(), **kwargs)
 
 

src/c/e/celery-3.1.11/celery/app/task.py   celery(Download)
                    break
            else:
                app = current_app._get_current_object()
        attrs['_app'] = app
 

src/c/e/celery-HEAD/celery/security/__init__.py   celery(Download)
    if app is None:
        from celery import current_app
        app = current_app._get_current_object()
 
    _disable_insecure_serializers(allowed_serializers)

src/c/e/celery-HEAD/celery/backends/base.py   celery(Download)
def unpickle_backend(cls, args, kwargs):
    """Return an unpickled backend."""
    return cls(*args, app=current_app._get_current_object(), **kwargs)
 
 

src/c/e/celery-HEAD/celery/app/trace.py   celery(Download)
def _trace_task_ret(name, uuid, request, body, content_type,
                    content_encoding, loads=loads_message, app=None,
                    **extra_request):
    app = app or current_app._get_current_object()
    accept = prepare_accept_content(app.conf.CELERY_ACCEPT_CONTENT)

  1 | 2  Next