Dear ToscaWidgetters,
I have a problem here and although threebean already tried to help me, it does not work yet!
This is the offending piece of code:
which just throws:
AttributeError: 'SubmissionForm_d' object has no attribute 'language_id'
It's a widget that needs the language_id selection field filled with values, but not with all values from the Database (then tw2.sqla.DbSelectionField would suffice) but with ones filtered by the SQLAlchemy query you see in the prepare method. It's dependent on the values the form gets displayed with, especially the associated assignment
In tw 0.9, I just prepared the options list for the SingleSelectField in my Controller and passed it via child_args to the widget, but that doesn't seem to work anymore!
If someone has a working solution for me, I'd be glad to get some advice or a fork of the gist!
Cheers,
Moritz