Example #1
0
 def check(self, key, req, entry):
     config = req.get_config()
     autoreload=int(config.get("PythonAutoReload", 1))
     if autoreload==0 and entry._value is not NOT_INITIALIZED:
         # if we don't want to reload and we have a value,
         # then we consider it fresh
         return None
     else:
         return ModuleCache.check(self, key, req, entry)
Example #2
0
 def check(self, key, req, entry):
     config = req.get_config()
     autoreload=int(config.get("PythonAutoReload", 1))
     if autoreload==0 and entry._value is not NOT_INITIALIZED:
         # if we don't want to reload and we have a value,
         # then we consider it fresh
         return None
     else:
         return ModuleCache.check(self, key, req, entry)