# -*- coding: utf-8 -*-
import os.path

from .blueprints import public_bp, variants_bp
from .plugins import VcfPlugin

PROJECT_NAME = __name__.split('.')[0]


class BaseConfig:
    PROJECT = PROJECT_NAME
    DEBUG = False
    TESTING = False

    # http://flask.pocoo.org/docs/quickstart/#sessions
    SECRET_KEY = 'secret key'
    PUZZLE_BACKEND = VcfPlugin()

    PUZZLE_MODE = 'snv'

    # default blueprints
    BLUEPRINTS = [public_bp, variants_bp]


class DevConfig(BaseConfig):
    DEBUG = True
    PUZZLE_ROOT = os.path.abspath('tests/fixtures')
    PUZZLE_PATTERN = '*.vcf'
    PUZZLE_TYPE = 'vcf'
    PUZZLE_PLUGIN = VcfPlugin()


class TestConfig(DevConfig):
    TESTING = True

# -*- coding: utf-8 -*-
import os.path

from .blueprints import public_bp, variants_bp
from .plugins import VcfPlugin

PROJECT_NAME = __name__.split('.')[0]


class BaseConfig:
    PROJECT = PROJECT_NAME
    DEBUG = False
    TESTING = False

    # http://flask.pocoo.org/docs/quickstart/#sessions
    SECRET_KEY = 'secret key'
    PUZZLE_BACKEND = VcfPlugin()
    STORE_ENABLED = False

    PUZZLE_MODE = 'snv'

    # default blueprints
    BLUEPRINTS = [public_bp, variants_bp]


class DevConfig(BaseConfig):
    DEBUG = True
    PUZZLE_ROOT = os.path.abspath('tests/fixtures')
    PUZZLE_PATTERN = '*.vcf'
    PUZZLE_TYPE = 'vcf'
    PUZZLE_PLUGIN = VcfPlugin()


class TestConfig(DevConfig):
    TESTING = True

set STORE_ENABLED to false by default