(self)
清理对象
清理对象
清理对象
def delete(self):
        """清理对象
        """
        self.syncDB(state=MMODE_STATE_DEL)
        if self._fk:
            data = self.getData()
            if data:
                fk = data.get(self._fk,"")
                pk = data.get(self._pk)
                self._update_fk(pk, fk, None)
        self.mdelete()
def delete ( self ) : self . syncDB ( state = MMODE_STATE_DEL ) if self . _fk : data = self . getData ( ) if data : fk = data . get ( self . _fk , "" ) pk = data . get ( self . _pk ) self . _update_fk ( pk , fk , None ) self . mdelete ( )