Exemplo n.º 1
0
 def delete(cls, id):
     with database.database.atomic():
         cell = Cell.get(Cell.id == id)
         try:
             from .ras.forms import RasTargetForm
             RasTargetForm.delete_nonexists_target('cell', cell.name)
         except Exception as e:
             logger.exception(e)
         cell.delete_instance()
         CellNode.delete().where(CellNode.cell == id).execute()
Exemplo n.º 2
0
 def delete(cls, id):
     with database.database.atomic():
         cell = Cell.get(Cell.id == id)
         try:
             from .ras.forms import RasTargetForm
             RasTargetForm.delete_nonexists_target('cell', cell.name)
         except Exception as e:
             logger.exception(e)
         cell.delete_instance()
         CellNode.delete().where(CellNode.cell == id).execute()
Exemplo n.º 3
0
 def tearDown(self):
     CellNode.delete().execute()
     Cell.delete().execute()
     Node.delete().execute()
Exemplo n.º 4
0
 def tearDown(self):
     CellNode.delete().execute()
     Cell.delete().execute()
     Node.delete().execute()