Projet

Général

Profil

0003-sql-assert-no-table-is-created-with-None-as-formdef..patch

Frédéric Péters, 22 septembre 2015 14:20

Télécharger (828 octets)

Voir les différences:

Subject: [PATCH 3/3] sql: assert no table is created with None as formdef.id

 wcs/sql.py | 1 +
 1 file changed, 1 insertion(+)
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
-