[Twisted-web] when formless is useless
Federico Di Gregorio
fog at initd.org
Sun Feb 13 12:05:15 MST 2005
I have a very simple problem rendering forms that formless currently
does not solve (at least, I was unable to solve it in formless.) I have
two group of "controls" (input fields) that I'd like to put in separate
fieldsets but in the same form. The problem here is that formless uses
templates that are instantiated and then put in the form-arguments slot
without any possibility of doing what I need.
Obviously (as suggested on #twisted.web by dialtone and Tv) I can write
the whole form from scratch, fill-in some custom slots for the value
attributes from form defaults before calling renderForms() and let
formless manage only the error checking. But this is so much work that
*not using* formless results in less code.
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer fog at debian.org
INIT.D Developer fog at initd.org
Those who do not study Lisp are doomed to reimplement it. Poorly.
-- from Karl M. Hegbloom .signature
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20050213/eff3d0d2/attachment.bin
More information about the Twisted-web