(self)
Delete all records on the table with the same Identify
Delete all records on the table with the same Identify
Delete all records on the table with the same Identify
def resetTableIdentify(self):
      """ Delete all records on the table with the same Identify """
      c = self.getCursor()
      stmt = "delete from %s where identify = ?" % (Consts.CDefSQLiteDBTable)
      stmt2 = "delete from %s where identify = ?" % (Consts.CDefSQLiteDBTablePop)

      logging.debug("Erasing data from the tables with the identify = %s", self.getIdentify())
      try:
         c.execute(stmt, (self.getIdentify(),))
         c.execute(stmt2, (self.getIdentify(),))
      except self.sqlite3mod.OperationalError, expt:
         if str(expt).find("no such table") >= 0:
            print "\n ## The DB Adapter can't find the tables ! Consider enable the parameter resetDB ! ##\n"

      self.commit()
def resetTableIdentify ( self ) : c = self . getCursor ( ) stmt = "delete from %s where identify = ?" % ( Consts . CDefSQLiteDBTable ) stmt2 = "delete from %s where identify = ?" % ( Consts . CDefSQLiteDBTablePop ) logging . debug ( "Erasing data from the tables with the identify = %s" , self . getIdentify ( ) ) try : c . execute ( stmt , ( self . getIdentify ( ) , ) ) c . execute ( stmt2 , ( self . getIdentify ( ) , ) ) except self . sqlite3mod . OperationalError , expt : if str ( expt ) . find ( "no such table" ) >= 0 : print "\n ## The DB Adapter can't find the tables ! Consider enable the parameter resetDB ! ##\n" self . commit ( )