Add __contains__ to DbObject

This commit is contained in:
Tom Marshall 2021-05-13 11:10:17 -07:00
parent 4c1b515007
commit e04f192194
1 changed files with 3 additions and 0 deletions

3
vmmd
View File

@ -600,6 +600,9 @@ class DbObject:
def values(self):
return self._dict.values()
def __contains__(self, name):
return name in self._dict
def __getitem__(self, name):
return self._dict[name]