# Path: gunstar/utils.py
# def import_object(name):
#     """ from tornado.utils.import_object """
#     if name.count('.') == 0:
#         return __import__(name, None, None)
# 
#     parts = name.split('.')
#     obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
#     try:
#         return getattr(obj, parts[-1])
#     except AttributeError:
#         raise ImportError("No module named %s" % parts[-1])


import six
from datetime import timedelta
from gunstar.utils import import_object
# -*- coding: utf-8 -*-



class DefaultConfig(object):

    DEBUG = True
    TESTING = False

    SECRET_KEY = ''
    SESSION_COOKIE_NAME = 'gsessionid'
    SESSION_COOKIE_DOMAIN = None
    SESSION_COOKIE_PATH = '/'
    SESSION_COOKIE_HTTPONLY = True
    SESSION_COOKIE_SECURE = False
    PERMANENT_SESSION_LIFETIME = timedelta(days=30)

    STATIC_ROOT = ''

# Path: gunstar/utils.py
# def import_object(name):
#     """ from tornado.utils.import_object """
#     if name.count('.') == 0:
#         return __import__(name, None, None)
# 
#     parts = name.split('.')
#     obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
#     try:
#         return getattr(obj, parts[-1])
#     except AttributeError:
#         raise ImportError("No module named %s" % parts[-1])


# Path: gunstar/config.py
import six
from datetime import timedelta
from gunstar.utils import import_object

# -*- coding: utf-8 -*-



class DefaultConfig(object):

    DEBUG = True
    TESTING = False

    SECRET_KEY = ''
    SESSION_COOKIE_NAME = 'gsessionid'
    SESSION_COOKIE_DOMAIN = None
    SESSION_COOKIE_PATH = '/'
    SESSION_COOKIE_HTTPONLY = True
    SESSION_COOKIE_SECURE = False
    PERMANENT_SESSION_LIFETIME = timedelta(days=30)

    STATIC_ROOT = ''

    STATIC_PATH = ''