def SaveStoredData(self, key, value): k = None try: k = Key.get(Name=key) k.Value = value k.save() except Exception as e: pass if k is None: k = Key.create(Name=key, Value=value)
def SaveStoredData(self, key, value): k = None try: k = Key.get(Name=key) k.Value = value k.save() except Exception as e: print("Could not save stored data %s " % e) if k is None: k = Key.create(Name=key, Value=value)
def SaveStoredData(self, key, value): k = None try: k = Key.get(Name=key) k.Value = value except Exception as e: pass if k is None: k = Key.create(Name=key, Value=value) k.save()
def LoadStoredData(self, key): try: return Key.get(Name=key).Value except Exception as e: logger.error("Could not get key %s " % e) return None
def LoadStoredData(self, key): self.__log.debug("Looking for key %s " % key) try: return Key.get(Name=key).Value except Exception as e: self.__log.debug("Could not get key %s " % e) return None
def LoadStoredData(self, key): logger.debug("Looking for key %s " % key) try: return Key.get(Name=key).Value except Exception as e: logger.error("Could not get key %s " % e) return None
def LoadStoredData(key): print("Looking for key %s " % key) try: return Key.get(Name=key).Value except Exception as e: print("Could not get key %s " % e)