Add support for 'keys' and 'in' method in datastore metadata

This commit is contained in:
Simon Schampijer 2007-10-02 23:40:39 +02:00
parent 53adb39e84
commit 03e6db4393

View File

@ -60,9 +60,15 @@ class DSMetadata(gobject.GObject):
def __delitem__(self, key):
del self._props[key]
def __contains__(self, key):
return self._props.__contains__(key)
def has_key(self, key):
return self._props.has_key(key)
def keys(self):
return self._props.keys()
def get_dictionary(self):
return self._props