Exemplo n.º 1
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)
Exemplo n.º 2
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)
Exemplo n.º 3
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()