Re: New newforms code

2007-01-11 Thread Paul Smith
Adrian Holovaty wrote: > On 1/10/07, Mikko Ohtamaa <[EMAIL PROTECTED]> wrote: > > I have toyed around with newforms a bit. > > > > We should subclass Widget to TemplateWidget and then rebuild all widget > > class hierarchy usingTemplateWidget based widgets. I'd rather throw > > away the current wi

Re: New newforms code

2007-01-11 Thread Gary Doades
Adrian Holovaty wrote: > On 1/10/07, Mikko Ohtamaa <[EMAIL PROTECTED]> wrote: > > I see a huge drawback in offloading widget rendering to the template > system -- it couples the forms library to the template system. Ideally > the newforms library, when solidified, would be distributed as a > stan

Re: New newforms code

2007-01-11 Thread Istvan Albert
Adrian Holovaty wrote: > Have you guys checked out the Widget class / capability in newforms? > That's the part that lets you define how a field should be output as > HTML. I'm definitely interested in hearing whether/how that doesn't > let you do what you want to do. Yes it worked out well. Bu

Re: New newforms code

2007-01-11 Thread Adrian Holovaty
On 1/10/07, Mikko Ohtamaa <[EMAIL PROTECTED]> wrote: > I have toyed around with newforms a bit. > > We should subclass Widget to TemplateWidget and then rebuild all widget > class hierarchy usingTemplateWidget based widgets. I'd rather throw > away the current widgets outputting HTML in Python cod

Re: New newforms code

2007-01-11 Thread Andrew Durdin
Mikko Ohtamaa wrote: > > I don't see any drawback for template based widgets expect that running > template engine consumes more CPU cycles. But if that's a problem for > someone, I am willing to buy him/her a new server :) Well, that's a handy coincidence, because it's suddenly become a problem

Re: New newforms code

2007-01-10 Thread Mikko Ohtamaa
> > Have you guys checked out the Widget class / capability in newforms? > That's the part that lets you define how a field should be output as > HTML. I'm definitely interested in hearing whether/how that doesn't > let you do what you want to do. I have toyed around with newforms a bit. We sho

Re: New newforms code

2007-01-08 Thread Adrian Holovaty
On 1/8/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > I just wanted to say that this is the reason I'm reluctant to use > Django's forms (new or old) no matter how stable it is. I like that > any major chunk of HTML code is visible for tinkering in my template > files. Maybe a template solution w

Re: New newforms code

2007-01-08 Thread Rob Hudson
I just wanted to say that this is the reason I'm reluctant to use Django's forms (new or old) no matter how stable it is. I like that any major chunk of HTML code is visible for tinkering in my template files. Maybe a template solution would be more work (probably some repetition, I haven't re

Re: New newforms code

2007-01-07 Thread Brian Beck
Mikko Ohtamaa wrote: Producing HTML is Python is the root of the problem. Most of HTML widget libraries out there use template pieces to produce form output - one template per widget. Have you had any though to move this kind of solution? I already once hacked oldforms a bit to provide me Templa

Re: New newforms code

2007-01-07 Thread Mikko Ohtamaa
Honza Král wrote: On 1/6/07, Mikko Ohtamaa <[EMAIL PROTECTED]> wrote: well, the problem I see here is that you move the responsibility to programmer, if designer wishes to change the output, he would have to go to python... Producing HTML is Python is the root of the problem. Most of HTML

Re: New newforms code

2007-01-06 Thread Honza Král
On 1/6/07, Mikko Ohtamaa <[EMAIL PROTECTED]> wrote: Hi fellow snaky coders, I just started a new web project. After a short evaluation of Turbogears, Ruby on Rails and Django, I decided to use Django for the project - again. Though Turbogears has good AJAX & etc. stuff, the lack of middleware c