예제 #1
0
    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
예제 #2
0
    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
예제 #3
0
    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
예제 #4
0
    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)
예제 #5
0
    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)
예제 #6
0
    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(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)