def __delitem__(self, name): key = name.encode('utf8') if DbfilenameShelf.has_key(self,key): DbfilenameShelf.__delitem__(self, key) self.sync()
def get(self,name,default=None): key = name.encode('utf8') if DbfilenameShelf.has_key(self,key): return DbfilenameShelf.__getitem__(self, key) else: return default