[Formed-commits] r310 - in trunk: . formed/formed/plugins/export

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 10 10:58:35 CET 2009


Author: teichmann
Date: 2009-02-10 10:58:34 +0100 (Tue, 10 Feb 2009)
New Revision: 310

Modified:
   trunk/ChangeLog
   trunk/formed/formed/plugins/export/sql.py
Log:
Fixed problem with description reference tables of radio groups.



Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-02-06 18:34:38 UTC (rev 309)
+++ trunk/ChangeLog	2009-02-10 09:58:34 UTC (rev 310)
@@ -1,5 +1,10 @@
 2009-02-09	Sascha L. Teichmanne <teichmann at intevation.de>
 
+	* formed/formed/plugins/export/sql.py: Fixed problem with
+	  description reference tables of radio groups.
+
+2009-02-09	Sascha L. Teichmanne <teichmann at intevation.de>
+
 	* formed/formed/plugins/export/sql.py: replace '-' in names
 	  by '_'.
 	  

Modified: trunk/formed/formed/plugins/export/sql.py
===================================================================
--- trunk/formed/formed/plugins/export/sql.py	2009-02-06 18:34:38 UTC (rev 309)
+++ trunk/formed/formed/plugins/export/sql.py	2009-02-10 09:58:34 UTC (rev 310)
@@ -482,7 +482,7 @@
                     "WARNING: Don't found selected in radio '%s'" % name
                 selected = None
 
-        max_length = max([len(c.getName()) for c in radio.children]) + 1
+        max_length = max([len(c.getDescription()) for c in radio.children]) + 1
 
         radioTable = Table(name + '_tbl')
         radioTable.appendColumn(Column('id', 'INTEGER PRIMARY KEY NOT NULL'))



More information about the Formed-commits mailing list