Add support for 'keys' and 'in' method in datastore metadata
This commit is contained in:
parent
53adb39e84
commit
03e6db4393
@ -60,9 +60,15 @@ class DSMetadata(gobject.GObject):
|
|||||||
def __delitem__(self, key):
|
def __delitem__(self, key):
|
||||||
del self._props[key]
|
del self._props[key]
|
||||||
|
|
||||||
|
def __contains__(self, key):
|
||||||
|
return self._props.__contains__(key)
|
||||||
|
|
||||||
def has_key(self, key):
|
def has_key(self, key):
|
||||||
return self._props.has_key(key)
|
return self._props.has_key(key)
|
||||||
|
|
||||||
|
def keys(self):
|
||||||
|
return self._props.keys()
|
||||||
|
|
||||||
def get_dictionary(self):
|
def get_dictionary(self):
|
||||||
return self._props
|
return self._props
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user