# Path: common_configs/services/aws.py
# class AWS(object):
# 
#     #: AWS access key id retrieved from ``AWS_ACCESS_KEY_ID`` environment setting
#     AWS_ACCESS_KEY_ID = values.SecretValue(environ_prefix=None)
# 
#     #: AWS secret key retrieved from ``AWS_SECRET_ACCESS_KEY`` environment setting
#     AWS_SECRET_ACCESS_KEY = values.SecretValue(environ_prefix=None)
# 
# Path: common_configs/utils.py
# def merge_items(base, new_items):
#     """
#     Merges two lists and eliminates duplicates
# 
#     :type base: list
#     :type new_items: list
#     :rtype: list
#     """
#     for item in new_items:
#         if not item in base:
#             base = base + [item]
#     return base


import datetime
import time
from django.utils.http import http_date
from configurations import values
from ..services.aws import AWS
from ..utils import merge_items
        from boto.s3.connection import SubdomainCallingFormat




class SimpleStorage(object):
    """
    Base class for static and media storage settings
    """

    STATIC_URL = "/static/"
    MEDIA_URL = "/media/"


class BaseCompressStorage(SimpleStorage):
    """
    Enables django-compress static files finder
    """

    #: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-STATICFILES_FINDERS
    STATICFILES_FINDERS = values.ListValue([
        "django.contrib.staticfiles.finders.FileSystemFinder",
        "django.contrib.staticfiles.finders.AppDirectoriesFinder",
        "compressor.finders.CompressorFinder",
    ])


class LocalCompressStorage(BaseCompressStorage):
    pass



# Path: common_configs/services/aws.py
# class AWS(object):
# 
#     #: AWS access key id retrieved from ``AWS_ACCESS_KEY_ID`` environment setting
#     AWS_ACCESS_KEY_ID = values.SecretValue(environ_prefix=None)
# 
#     #: AWS secret key retrieved from ``AWS_SECRET_ACCESS_KEY`` environment setting
#     AWS_SECRET_ACCESS_KEY = values.SecretValue(environ_prefix=None)
# 
# Path: common_configs/utils.py
# def merge_items(base, new_items):
#     """
#     Merges two lists and eliminates duplicates
# 
#     :type base: list
#     :type new_items: list
#     :rtype: list
#     """
#     for item in new_items:
#         if not item in base:
#             base = base + [item]
#     return base


# Path: common_configs/storage/storage.py
import datetime
import time
from django.utils.http import http_date
from configurations import values
from ..services.aws import AWS
from ..utils import merge_items
        from boto.s3.connection import SubdomainCallingFormat





class SimpleStorage(object):
    """
    Base class for static and media storage settings
    """

    STATIC_URL = "/static/"
    MEDIA_URL = "/media/"


class BaseCompressStorage(SimpleStorage):
    """
    Enables django-compress static files finder
    """

    #: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-STATICFILES_FINDERS
    STATICFILES_FINDERS = values.ListValue([
        "django.contrib.staticfiles.finders.FileSystemFinder",
        "django.contrib.staticfiles.finders.AppDirectoriesFinder",
        "compressor.finders.CompressorFinder",
    ])


class LocalCompressStorage(BaseCompressStorage):
    pass



class AWSCompressStorage(AWS, BaseCompressStorage):