Пример #1
0
 def __delitem__(self, name):
     key = name.encode('utf8')
     if DbfilenameShelf.has_key(self,key):
         DbfilenameShelf.__delitem__(self, key)
         self.sync()
Пример #2
0
 def get(self,name,default=None):
     key = name.encode('utf8')
     if DbfilenameShelf.has_key(self,key):
         return DbfilenameShelf.__getitem__(self, key)
     else:
         return default