Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/6.0-opw-5801-ado into 
lp:openobject-server/6.0.

Requested reviews:
  Jay Vora (OpenERP) (jvo-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-5801-ado/+merge/67032

Hello Sir,

I have change the size of csv file while loading the data at the time of
Synchronize Translation.

Thanks,
Amit
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-5801-ado/+merge/67032
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.0-opw-5801-ado.
=== modified file 'bin/tools/translate.py'
--- bin/tools/translate.py	2011-01-20 12:57:58 +0000
+++ bin/tools/translate.py	2011-07-06 12:41:42 +0000
@@ -32,6 +32,7 @@
 import tarfile
 import tempfile
 import threading
+import sys
 from os.path import join
 
 from datetime import datetime
@@ -873,6 +874,8 @@
         # now, the serious things: we read the language file
         fileobj.seek(0)
         if fileformat == 'csv':
+            #Setting the limit of data while loading a CSV
+            csv.field_size_limit(sys.maxint)
             reader = csv.reader(fileobj, quotechar='"', delimiter=',')
             # read the first line of the file (it contains columns titles)
             for row in reader:
@@ -991,7 +994,7 @@
 def load_language(cr, lang):
     """Loads a translation terms for a language.
     Used mainly to automate language loading at db initialization.
-    
+
     :param lang: language ISO code with optional _underscore_ and l10n flavor (ex: 'fr', 'fr_BE', but not 'fr-BE')
     :type lang: str
     """

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to