# Path: easyforms/styles.py
# BOOTSTRAP_3 = 'bs3'
# BOOTSTRAP_4 = 'bs4'
# ALL_STYLES = [BOOTSTRAP_3, BOOTSTRAP_4]


import logging
from flask import session
from easyforms import styles
"""
Code to manage session variables
"""




__author__ = 'Stephen Brown (Little Fish Solutions LTD)'

log = logging.getLogger(__name__)

KEY_RENDER_STYLE = 'render-style'


def get_render_style():
    # Default to bs4
    return session.get(KEY_RENDER_STYLE, styles.BOOTSTRAP_4)


def set_render_style(render_style):

# Path: easyforms/styles.py
# BOOTSTRAP_3 = 'bs3'
# BOOTSTRAP_4 = 'bs4'
# ALL_STYLES = [BOOTSTRAP_3, BOOTSTRAP_4]


# Path: testapp/sessionutil.py
import logging
from flask import session
from easyforms import styles

"""
Code to manage session variables
"""




__author__ = 'Stephen Brown (Little Fish Solutions LTD)'

log = logging.getLogger(__name__)

KEY_RENDER_STYLE = 'render-style'


def get_render_style():
    # Default to bs4
    return session.get(KEY_RENDER_STYLE, styles.BOOTSTRAP_4)


def set_render_style(render_style):

    if render_style not in styles.ALL_STYLES: