durusmail: quixote-users: [Quixote-users] Plans for Quixote 1.0
Plans for Quixote 1.0
2003-03-13
2003-03-13
2003-03-13
2003-03-13
2003-03-13
2003-03-13
2003-03-13
2003-03-13
2003-03-14
[Quixote-users] Plans for Quixote 1.0
Jim Dukarm
2003-03-13
> On Thu, Mar 13, 2003 at 01:28:29PM -0800, Jim Dukarm wrote:
>> ...The creation of htmltext by the widgets
>> that the Form renders does not cause any perplexities....

----------- Neil Schemenauer was a-sayin': -----------
> Not exactly.  If you look at the form framework from 0.5.1 you will see
> that some widgets take "quote" keyword arguments.  In 0.6, that argument
> is gone and everything that is not htmltext will have special characters
> escaped.  It's probably not such a big deal since usually it doesn't
> make sense to pass HTML markup to widgets.

Well, maybe there are still some perplexities.  Although I am not
crazy about htmltext myself, I am willing to co-exist with it.

Now comes the fun part. By applying str() to all the htmltext in the
Form's render methods, I am changing the Form class so that the result
of rendering it is a string, not htmltext, although it is a "safe"
string since all the risky parts of it were derived from htmltext.

If that is going to be a problem for anyone, and I guess it might if
you want to include a form inside an [html] template, then I need to
modify my approach and make the Form render into htmltext.

Jim Dukarm
DELTA-X RESEARCH


reply