diff options
Diffstat (limited to 'Pivot.py')
-rw-r--r-- | Pivot.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -142,7 +142,9 @@ class Storage: return self.entries.keys()[:] # copy def exists(self, dn): - return dn in self.entries.keys() + if not self.entries.has_key("dn"): + return False + return len(self.entries["dn"]) > 0 def delete(self, dn): if self.entries.has_key(dn): |