From: <de...@us...> - 2003-04-09 00:08:50
|
Update of /cvsroot/pymerase/pymerase/pymerase/output/dbAPI In directory sc8-pr-cvs1:/tmp/cvs-serv14309/pymerase/output/dbAPI Modified Files: dbAPI.py Log Message: either removed unecessary prints or turned them into DebugWarnings to simplify the runtime output. (The first step to providing meaningful error messages.) Index: dbAPI.py =================================================================== RCS file: /cvsroot/pymerase/pymerase/pymerase/output/dbAPI/dbAPI.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** dbAPI.py 5 Apr 2003 01:39:42 -0000 1.22 --- dbAPI.py 9 Apr 2003 00:08:47 -0000 1.23 *************** *** 176,181 **** keyValue = sqlEscapeString(keyValue) sql %= (tableName, keyName, keyValue) ! print "__loadObjects{%s}: %s -> %s" % (m, sql, self.otherEndModule.getClassName()) ! warn("__loadObjects{%s}: %s" % (m, sql), DebugWarning) return self.thisObject.db_session.loadRecords(self.otherEndModule.getClass(), sql) --- 176,180 ---- keyValue = sqlEscapeString(keyValue) sql %= (tableName, keyName, keyValue) ! warn("__loadObjects{%s}: %s -> %s" % (m, sql, self.otherEndModule.getClassName()), DebugWarning) return self.thisObject.db_session.loadRecords(self.otherEndModule.getClass(), sql) *************** *** 277,281 **** msg ='d[%s] = s[%s] = %s' % (self.thisObject.getClassName(), self.loaded_objects[0].getClassName(), str(keyValue)) - print msg warn(msg, DebugWarning) --- 276,279 ---- *************** *** 559,563 **** update_values_list = [] ! print self.loaded, self.getPrimaryKeyName(), self.isAutoSequence() # try and get a primary key # what should we do if there is no sequence? --- 557,565 ---- update_values_list = [] ! warn("%d, %s, %d" % (self.loaded, ! self.getPrimaryKeyName(), ! self.isAutoSequence()), ! DebugWarning) ! # try and get a primary key # what should we do if there is no sequence? |