# Path: simpleapi/message/common.py
# class SAException(Exception):
#     def __init__(self, msg=None):
#         super(Exception, self).__init__()
#         self._message = msg
# 
#     def _get_message(self):
#         return self._message
# 
#     def _set_message(self, message):
#         self._message = message
# 
#     message = property(_get_message, _set_message)
# 
#     def __repr__(self):
#         return self.message


import cPickle
import hashlib
from simpleapi.message.common import SAException
    from django.core.cache import cache
        else:
            return True

    def _handle_request(self, request):
        if self.is_triggered(request):
            self.handle_request(request)

    def _handle_response(self, response):
        if self.is_triggered(response):
            self.handle_response(response)

    def setup(self):
        pass

    def handle_request(self, request):
        pass

    def handle_response(self, response):
        pass


class CachingFeature(Feature):
    __config__ = ('caching', (dict, bool))

    def setup(self):
        assert has_django, 'Works currently with django only'

    def handle_request(self, request):
        caching_config = self.get_config(request)


# Path: simpleapi/message/common.py
# class SAException(Exception):
#     def __init__(self, msg=None):
#         super(Exception, self).__init__()
#         self._message = msg
# 
#     def _get_message(self):
#         return self._message
# 
#     def _set_message(self, message):
#         self._message = message
# 
#     message = property(_get_message, _set_message)
# 
#     def __repr__(self):
#         return self.message


# Path: simpleapi/server/feature.py
import cPickle
import hashlib
from simpleapi.message.common import SAException
    from django.core.cache import cache

        else:
            return True

    def _handle_request(self, request):
        if self.is_triggered(request):
            self.handle_request(request)

    def _handle_response(self, response):
        if self.is_triggered(response):
            self.handle_response(response)

    def setup(self):
        pass

    def handle_request(self, request):
        pass

    def handle_response(self, response):
        pass


class CachingFeature(Feature):
    __config__ = ('caching', (dict, bool))

    def setup(self):
        assert has_django, 'Works currently with django only'

    def handle_request(self, request):
        caching_config = self.get_config(request)


        if caching_config: