Update Copyright header point to COPYING file
[cascardo/ipsilon.git] / ipsilon / rest / common.py
index 4103e8e..447dd7c 100644 (file)
@@ -1,7 +1,8 @@
-# Copyright (C) 2015  Ipsilon Contributors see COPYING for license
+# Copyright (C) 2015 Ipsilon project Contributors, for license see COPYING
 
 import cherrypy
 import json
 
 import cherrypy
 import json
+import logging
 from functools import wraps
 from ipsilon.util.endpoint import Endpoint
 
 from functools import wraps
 from ipsilon.util.endpoint import Endpoint
 
@@ -36,11 +37,6 @@ class RestPage(Endpoint):
 
     def __init__(self, *args, **kwargs):
         super(RestPage, self).__init__(*args, **kwargs)
 
     def __init__(self, *args, **kwargs):
         super(RestPage, self).__init__(*args, **kwargs)
-        self.default_headers.update({
-            'Cache-Control': 'no-cache, must-revalidate',
-            'Pragma': 'no-cache',
-            'Expires': 'Thu, 01 Dec 1994 16:00:00 GMT',
-        })
         self.auth_protect = True
 
 
         self.auth_protect = True
 
 
@@ -59,7 +55,8 @@ class RestPlugins(RestPage):
         for plugin in self._site[facility].available:
             obj = self._site[facility].available[plugin]
             if hasattr(obj, 'rest'):
         for plugin in self._site[facility].available:
             obj = self._site[facility].available[plugin]
             if hasattr(obj, 'rest'):
-                cherrypy.log.error('Rest plugin: %s' % plugin)
+                cherrypy.log.error('Rest plugin: %s' % plugin,
+                                   severity=logging.DEBUG)
                 obj.rest.mount(self)
 
     def root_with_msg(self, message=None, message_type=None, changed=None):
                 obj.rest.mount(self)
 
     def root_with_msg(self, message=None, message_type=None, changed=None):