From f624bb30313cf84508fcf13097f90f28fe2ed241 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 9 Oct 2007 05:58:34 +0000 Subject: [PATCH] Project Bugfix bzr revid: fp@tinyerp.com-7323dac277d16d46794d20fd624d1cd8ea11e828 --- bin/i18n/fr_FR.csv | 2 +- bin/sql_db.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/i18n/fr_FR.csv b/bin/i18n/fr_FR.csv index 37921770ffa..6ee748e7c5f 100644 --- a/bin/i18n/fr_FR.csv +++ b/bin/i18n/fr_FR.csv @@ -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é" diff --git a/bin/sql_db.py b/bin/sql_db.py index 64f6337b57d..21f66a28d2d 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -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]