Example #1
0
 def delete(self):
     for model in self.filtermodels:
         model.delete()
     self.filtermodels=[]
     self.filteredattrs=[]
     sqlsession.delete(self.dao)
     sqlsession.commit()        
     del self.dao 
Example #2
0
 def delete(self):
     """
     Remove from database
     """
     if self.dao != None:
         sqlsession.flush()
         sqlsession.delete(self.dao)
         sqlsession.commit()
         del self.dao
Example #3
0
 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=[]
Example #4
0
 def delete(self):  
     sqlsession.delete(self.dao)
     sqlsession.commit()