0003-sql-assert-no-table-is-created-with-None-as-formdef..patch
wcs/sql.py | ||
---|---|---|
250 | 250 |
# |
251 | 251 |
# as we have to know our table names, we crop the names here, and to an |
252 | 252 |
# extent that allows suffixes (like _evolution) to be added. |
253 |
assert formdef.id is not None |
|
253 | 254 |
if hasattr(formdef, 'table_name') and formdef.table_name: |
254 | 255 |
return formdef.table_name |
255 | 256 |
formdef.table_name = 'formdata_%s_%s' % (formdef.id, |
256 |
- |