コード例 #1
0
ファイル: 000_1st_run.py プロジェクト: nburazor/eden
except NameError:
    update_check_needed = True

# shortcut
appname = request.application

if update_check_needed:
    # @ToDo: Load deployment_settings so that we can configure the update_check
    # - need to rework so that 000_config.py is parsed 1st
    import s3cfg
    settings = s3cfg.S3Config()
    # Run update checks
    from s3_update_check import update_check
    errors = []
    warnings = []
    messages = update_check(settings)
    errors.extend(messages.get("error_messages", []))
    warnings.extend(messages.get("warning_messages", []))

    # Catch-all check for dependency errors.
    # NB This does not satisfy the goal of calling out all the setup errors
    #    at once - it will die on the first fatal error encountered.
    try:
        import s3 as s3base
    except Exception, e:
        errors.append(e.message)

    import sys

    if warnings:
        # Report (non-fatal) warnings.
コード例 #2
0
ファイル: 000_1st_run.py プロジェクト: rjmackay/eden
# shortcut
appname = request.application

if update_check_needed:
    # Run update checks
    from s3_update_check import update_check

    errors = []
    warnings = []
    # Supply the current (Web2py) environment. Pick out only the items that are
    # safe for the check functions to combine with their own environments, i.e.
    # not anything of the form __x__.
    # environment = dict((k, v) for (k, v) in globals().iteritems() if not k.startswith("__"))
    # messages = update_check(environment)
    messages = update_check()
    errors.extend(messages.get("error_messages", []))
    warnings.extend(messages.get("warning_messages", []))

    # Catch-all check for dependency errors.
    # NB This does not satisfy the goal of calling out all the setup errors
    #    at once - it will die on the first fatal error encountered.
    try:
        import s3 as s3base
    except Exception, e:
        errors.extend(e.message)

    import sys

    if warnings:
        # Report (non-fatal) warnings.
コード例 #3
0
ファイル: 000_1st_run.py プロジェクト: PeterDaveHello/eden
except NameError:
    update_check_needed = True

# shortcut
appname = request.application

if update_check_needed:
    # @ToDo: Load deployment_settings so that we can configure the update_check
    # - need to rework so that 000_config.py is parsed 1st
    import s3cfg
    settings = s3cfg.S3Config()
    # Run update checks
    from s3_update_check import update_check
    errors = []
    warnings = []
    messages = update_check(settings)
    errors.extend(messages.get("error_messages", []))
    warnings.extend(messages.get("warning_messages", []))

    # Catch-all check for dependency errors.
    # NB This does not satisfy the goal of calling out all the setup errors
    #    at once - it will die on the first fatal error encountered.
    try:
        import s3 as s3base
    except Exception, e:
        errors.append(e.message)

    import sys

    if warnings:
        # Report (non-fatal) warnings.
コード例 #4
0
    update_check_needed = True

# shortcut
appname = request.application

if update_check_needed:
    # Run update checks
    from s3_update_check import update_check
    errors = []
    warnings = []
    # Supply the current (Web2py) environment. Pick out only the items that are
    # safe for the check functions to combine with their own environments, i.e.
    # not anything of the form __x__.
    #environment = dict((k, v) for (k, v) in globals().iteritems() if not k.startswith("__"))
    #messages = update_check(environment)
    messages = update_check()
    errors.extend(messages.get("error_messages", []))
    warnings.extend(messages.get("warning_messages", []))

    # Catch-all check for dependency errors.
    # NB This does not satisfy the goal of calling out all the setup errors
    #    at once - it will die on the first fatal error encountered.
    try:
        import s3 as s3base
    except Exception, e:
        errors.extend(e.message)

    import sys

    if warnings:
        # Report (non-fatal) warnings.