# Path: kardboard/app.py
#     DEBUG_TOOLBAR = True
#     DEBUG_TOOLBAR = False
#     SENTRY_SUPPORT = True
#     SENTRY_SUPPORT = False
# def get_app():
# 
# Path: kardboard/util.py
# def slugify(text, delim=u'-'):
#     """Generates an ASCII-only slug."""
#     result = []
#     text = text.replace("'", "")
#     for word in _punct_re.split(text.lower()):
#         word = word.encode('translit/long')
#         if word:
#             result.append(word)
#     return unicode(delim.join(result)).strip()


from kardboard.app import app
from kardboard.util import slugify


class State(object):
    def __init__(self, name, buffer, is_buffer):
        self.name = name
        self.buffer = buffer
        self.is_buffer = is_buffer

    def __unicode__(self):
        return unicode(self.name)

    def __str__(self):
        return str(self.name)


class States(object):
    def __init__(self, config=None):
        if not config:

# Path: kardboard/app.py
#     DEBUG_TOOLBAR = True
#     DEBUG_TOOLBAR = False
#     SENTRY_SUPPORT = True
#     SENTRY_SUPPORT = False
# def get_app():
# 
# Path: kardboard/util.py
# def slugify(text, delim=u'-'):
#     """Generates an ASCII-only slug."""
#     result = []
#     text = text.replace("'", "")
#     for word in _punct_re.split(text.lower()):
#         word = word.encode('translit/long')
#         if word:
#             result.append(word)
#     return unicode(delim.join(result)).strip()


# Path: kardboard/models/states.py
from kardboard.app import app
from kardboard.util import slugify



class State(object):
    def __init__(self, name, buffer, is_buffer):
        self.name = name
        self.buffer = buffer
        self.is_buffer = is_buffer

    def __unicode__(self):
        return unicode(self.name)

    def __str__(self):
        return str(self.name)


class States(object):
    def __init__(self, config=None):
        if not config:

            config = app.config