Issue #115 resolved

Labels cause validation to add None key to data

Juraj Variny
created an issue

I have form with Label like:

class MyForm(TableForm):
  class child(TableLayout):
    field1 = TextField()
    infoLabel = Label(text="IMPORTANT: Please read..etc...")
    field2 = TextField()

The validation in tw2.core.widgets, line 661 (in version 2.1.2), includes the Label and results in adding None key to data:

{None: '', 'field1': 'value', 'field2': 'value'}

which bombs out later (in Turbogears causes "keywords must be strings:" exception).

Comments (5)

  1. Log in to comment