Loading cloudcontrol/common/tql/db/db.py +9 −0 Changes for cloudcontrol/common/tql/db/db.py: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -137,6 +137,15 @@ class TqlResponse(object): response.add(obj) return response def __sub__(self, other): response = self.copy() for obj in other: try: response.remove(obj) except KeyError: pass return response def __getitem__(self, name): obj = self.get(name) if obj is None: Loading Loading
cloudcontrol/common/tql/db/db.py +9 −0 Changes for cloudcontrol/common/tql/db/db.py: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -137,6 +137,15 @@ class TqlResponse(object): response.add(obj) return response def __sub__(self, other): response = self.copy() for obj in other: try: response.remove(obj) except KeyError: pass return response def __getitem__(self, name): obj = self.get(name) if obj is None: Loading