예제 #1
0
def _unpickle_appattr(reverse_name, args):
    """Given an attribute name and a list of args, gets
    the attribute from the current app and calls it."""
    return get_current_app()._rgetattr(reverse_name)(*args)
예제 #2
0
파일: base.py 프로젝트: ahalife/celery
def _unpickle_appattr(reverse_name, args):
    """Given an attribute name and a list of args, gets
    the attribute from the current app and calls it."""
    return get_current_app()._rgetattr(reverse_name)(*args)
예제 #3
0
def _app_or_default(app=None):
    if app is None:
        return state.get_current_app()
    return app
예제 #4
0
파일: __init__.py 프로젝트: rwillmer/celery
def _app_or_default(app=None):
    if app is None:
        return state.get_current_app()
    return app