Project Bugfix

bzr revid: fp@tinyerp.com-7323dac277d16d46794d20fd624d1cd8ea11e828
This commit is contained in:
Fabien Pinckaers
2007-10-09 05:58:34 +00:00
parent 541443b30c
commit f624bb3031
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -8077,7 +8077,7 @@
"view","stock.picking",0,"Others info","Autres informations"
"view","stock.picking",0,"Force assignations","Forcer l'assignation"
"view","stock.picking",0,"Cancel assignation","Annuler assignation"
"view","stock.picking",0,"Make Packing","Emballer "
"view","stock.picking",0,"Make Packing","Valider"
"field","stock.picking,purchase_id",0,"Purchase Order","Ordre d'achat"
"selection","stock.picking,state",0,"Confirmed","Confirmé"
"selection","stock.picking,state",0,"Assigned","Assigné"
Can't render this file because it is too large.
+10 -10
View File
@@ -57,7 +57,7 @@ class fake_cursor:
self.con = con
self.dbname = dbname
def execute_not_run(self,*args):
def execute(self,*args):
#if not fake_cursor.nbr % 1:
# print 'sql: ',fake_cursor.nbr, args
res = re.match('^select.* from ([a-zA-Z_]+) .*$', args[0], re.I)
@@ -71,15 +71,15 @@ class fake_cursor:
# else:
# print 'sql: ',fake_cursor.nbr, args[0]
#if not fake_cursor.nbr % 5000:
# ct = []
# for t,c in fake_cursor._tables.items():
# ct.append([c,t])
# ct.sort()
# ct.reverse()
# print 'After %d queries' % (fake_cursor.nbr,)
# for line in ct[:50]:
# print ' %s: %d' % (line[1], line[0])
if not fake_cursor.nbr % 500:
ct = []
for t,c in fake_cursor._tables.items():
ct.append([c,t])
ct.sort()
ct.reverse()
print 'After %d queries' % (fake_cursor.nbr,)
for line in ct[:50]:
print ' %s: %d' % (line[1], line[0])
#if len(args)>1:
# print 'sql: ',fake_cursor.nbr, args[0], args[1]