From 7130e2b37714116d6f2c4ef5b623be1af8dc4da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 22 Sep 2015 14:18:11 +0200 Subject: [PATCH 3/3] sql: assert no table is created with None as formdef.id --- wcs/sql.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wcs/sql.py b/wcs/sql.py index cecd53f..3e2e2f6 100644 --- a/wcs/sql.py +++ b/wcs/sql.py @@ -250,6 +250,7 @@ def get_formdef_table_name(formdef): # # as we have to know our table names, we crop the names here, and to an # extent that allows suffixes (like _evolution) to be added. + assert formdef.id is not None if hasattr(formdef, 'table_name') and formdef.table_name: return formdef.table_name formdef.table_name = 'formdata_%s_%s' % (formdef.id, -- 2.5.3