def delete(self): for model in self.filtermodels: model.delete() self.filtermodels=[] self.filteredattrs=[] sqlsession.delete(self.dao) sqlsession.commit() del self.dao
def delete(self): """ Remove from database """ if self.dao != None: sqlsession.flush() sqlsession.delete(self.dao) sqlsession.commit() del self.dao
def delete(self): sqlsession.flush() sqlsession.delete(self.dao) sqlsession.flush() for monitor in self.monitors: monitor.delete() del self.monitors sqlsession.commit() del self.dao self.monitors=[]
def delete(self): sqlsession.delete(self.dao) sqlsession.commit()