コード例 #1
0
 def delete(self):
     for key, col in self.fieldMap.items():
         try:
             col.remove({'_id': self.__dict__["%sid" % key]})
         except:
             pass
     # TODO also remove pippies and other stuff cached after pippring
     Docs.remove({'_id': self.__dict__['_id']})