diff roundup/configuration.py @ 4255:88af08f8666f

New config option csv_field_size: Pythons csv module (which is used for export/import) has a new field size limit starting with python2.5. We now issue a warning during export if the limit is too small and use the csv_field_size configuration during import to set the limit for the csv module.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Tue, 29 Sep 2009 07:27:17 +0000
parents 34434785f308
children 9225a37fbeae
line wrap: on
line diff
--- a/roundup/configuration.py	Thu Sep 17 09:54:49 2009 +0000
+++ b/roundup/configuration.py	Tue Sep 29 07:27:17 2009 +0000
@@ -530,6 +530,13 @@
             "stop-words (eg. A,AND,ARE,AS,AT,BE,BUT,BY, ...)"),
         (OctalNumberOption, "umask", "02",
             "Defines the file creation mode mask."),
+        (IntegerNumberOption, 'csv_field_size', '131072',
+            "Maximum size of a csv-field during import. Roundups export\n"
+            "format is a csv (comma separated values) variant. The csv\n"
+            "reader has a limit on the size of individual fields\n"
+            "starting with python 2.5. Set this to a higher value if you\n"
+            "get the error 'Error: field larger than field limit' during\n"
+            "import."),
     )),
     ("tracker", (
         (Option, "name", "Roundup issue tracker",

Roundup Issue Tracker: http://roundup-tracker.org/