Changeset - 24b61c257aab
default
0
2
0
forms: wrap LoginForm inside function like other forms
All forms except LoginForm are wrapped inside a function. The original
purpose of this wrapping seems to be the ability to pass parameters to tweak
the form.
But, this also has another desired effect: translation of strings
wrapped with _ is no longer attempted when reading the class definition, but
only when the function is instantiated. In the former case, it is not
guaranteed that a translator is actually available because we are not
running in standard application context.
Align LoginForm with the others.
All forms except LoginForm are wrapped inside a function. The original
purpose of this wrapping seems to be the ability to pass parameters to tweak
the form.
But, this also has another desired effect: translation of strings
wrapped with _ is no longer attempted when reading the class definition, but
only when the function is instantiated. In the former case, it is not
guaranteed that a translator is actually available because we are not
running in standard application context.
Align LoginForm with the others.
2 files changed with 24 insertions and 22 deletions:
0 comments (0 inline, 0 general)
0 comments (0 inline, 0 general)