# 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
        default = 0
        backlog = self.config.get('BACKLOG_STATE', default)
        return self.states[backlog]

    def __iter__(self):
        for state in self.states:
            yield state.name

    def __unicode__(self):
        return unicode([unicode(s) for s in self])

    def __str__(self):
        return str([str(s) for s in self])

    def __getitem__(self, key):
        return self.states[key].name

    def index(self, arg):
        """
        The index method routes requests for strings
        differently than requests for the new in 1.12 State objects.
        """
        if isinstance(arg, (str, unicode)):
            return self.state_names.index(arg)
        else:
            return self.states.index(arg)

    def find_by_slug(self, slug):
        by_slug = {}
        for state in self:

# 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

        default = 0
        backlog = self.config.get('BACKLOG_STATE', default)
        return self.states[backlog]

    def __iter__(self):
        for state in self.states:
            yield state.name

    def __unicode__(self):
        return unicode([unicode(s) for s in self])

    def __str__(self):
        return str([str(s) for s in self])

    def __getitem__(self, key):
        return self.states[key].name

    def index(self, arg):
        """
        The index method routes requests for strings
        differently than requests for the new in 1.12 State objects.
        """
        if isinstance(arg, (str, unicode)):
            return self.state_names.index(arg)
        else:
            return self.states.index(arg)

    def find_by_slug(self, slug):
        by_slug = {}
        for state in self:

            by_slug[slugify(state)] = state