Added shortcuts to AttributeStorage/Lite
This commit is contained in:
parent
82e7ef2a56
commit
47e03322c3
|
@ -91,6 +91,9 @@ class AttributeStorage(ModuleBase):
|
|||
return {}
|
||||
return item
|
||||
|
||||
def get(self, item, key):
|
||||
return self.getKey(item, key)
|
||||
|
||||
def getKey(self, item, key):
|
||||
"""Get the value of an key on an item
|
||||
|
||||
|
@ -123,6 +126,9 @@ class AttributeStorage(ModuleBase):
|
|||
return None
|
||||
return row["value"]
|
||||
|
||||
def set(self, item, key, value):
|
||||
return self.setKey(item, key, value)
|
||||
|
||||
def setKey(self, item, key, value):
|
||||
"""Set the key on an item
|
||||
|
||||
|
|
|
@ -86,6 +86,8 @@ class AttributeStorageLite(ModuleBase):
|
|||
return {}
|
||||
return item
|
||||
|
||||
def get(self, item, key):
|
||||
return self.getKey(item, key)
|
||||
def getKey(self, item, key):
|
||||
"""Get the value of an key on an item
|
||||
|
||||
|
@ -119,6 +121,8 @@ class AttributeStorageLite(ModuleBase):
|
|||
return None
|
||||
return row["value"]
|
||||
|
||||
def set(self, item, key, value):
|
||||
return self.setKey(item, key, value)
|
||||
def setKey(self, item, key, value):
|
||||
"""Set the key on an item
|
||||
|
||||
|
|
Loading…
Reference in New Issue