durusmail: quixote-users: some form2 issues
some form2 issues
2004-11-03
2004-11-03
StaticFile cast as str in function return
2004-11-05
2004-11-05
2004-11-05
some form2 issues
Ksenia Marasanova
2004-11-04
> For the empty SelectWidget you might be able to just pass in one option
> like:
> opts = [ ('None', '', 'None') ]
> Not sure if that would work for what you want.

I finally modified the widget to accept empty list, I think that an
empty option in the list is to confusing for the user.

> I'd be interested to see
> some of your form2/javascript forms down the road... something I've been
> meaning to investigate.

After overriding _render_widgets method of Form to get the javascript
buttons next to select element, modifying request.form just to pass
other values then POST data, I am not sure why I should use Form class
in the first place.
While Form is great for simple edit forms, I think that for complex
user interfaces it would be better to use only widgets, probably with
separate template for html and javascript mess (but it's a matter of
taste).

--
Ksenia

reply