示例#1
0
def bugreport(app=None):
    try:
        import celery
        import tornado
        import babel
        return 'flower   -> flower:%s tornado:%s babel:%s' %\
                (__version__, tornado.version, babel.__version__)\
                + celery.bugreport(app)
    except (ImportError, AttributeError):
        return 'Unknown Celery version'
示例#2
0
def bugreport(app=None):
    try:
        import celery
        from celery.app import set_default_app
        import tornado
        import babel

        set_default_app(app)

        return 'flower   -> flower:%s tornado:%s babel:%s%s' % (
            __version__, tornado.version, babel.__version__,
            celery.bugreport())
    except (ImportError, AttributeError):
        return 'Unknown Celery version'
示例#3
0
def bugreport(app=None):
    try:
        import celery
        from celery.app import set_default_app
        import tornado
        import babel

        set_default_app(app)

        return 'flower   -> flower:%s tornado:%s babel:%s%s' % (
            __version__,
            tornado.version,
            babel.__version__,
            celery.bugreport()
        )
    except (ImportError, AttributeError):
        return 'Unknown Celery version'
示例#4
0
def bugreport():
    try:
        import celery
        return 'flower   -> %s' % __version__ + celery.bugreport()
    except (ImportError, AttributeError):
        return 'Unknown Celery version'
示例#5
0
文件: __init__.py 项目: laiwei/flower
def bugreport():
    try:
        import celery
        return celery.bugreport()
    except (ImportError, AttributeError):
        return 'Unknown Celery version'