Well, one thought is that your timing is a little off. We're in the
final phases of getting the 1.1-beta release out and then it's heads
down, fixing bugs for 1.1-final.
In a couple of months or so we'll be having a discussion for proposals
to include in Django 1.2. That would be an excellent time for somebody
to bring this up -- and it probably should be akaihola, since we don't
want to conscript projects into the tree unwilling.
Having just had a quick read fo the source -- this is the first time
I've heard of the project -- it looks well enough written. Akaihola does
know his stuff; we already know that. Possibly we wouldn't pull in the
whole project, but get a patch to add the fieldsets capabilities.
I suspect, though, that adding fieldsets to forms isn't hard at all. We
just need a decent API proposed and a short patch to implement it. The
work in WTForms looks like an approach at creating one such API (since
there are neither docs nor tests, I'm reverse-engineering the API from
the code in my head, but it looks pretty decent). So the real discussion
is probably about an API.
When/if that happens, of course we'll use it internally in Django where
appropriate.
Regards,
Malcolm
akaihola wrote:
>> Having just had a quick read fo the source -- this is the first time
>> I've heard of the project -- it looks well enough written. Akaihola does
>> know his stuff; we already know that. Possibly we wouldn't pull in the
>> whole project, but get a patch to add the fieldsets capabilities.
>
> It's not my original code. I pulled Christian Joergensen's project
> from pypi into my GitHub account so I could update and use it with
> Django 1.0. I've now made that more clear in the GitHub description.
>
> My only contributions so far are fixing the newforms import and
> importing past releases into a git repository.
First of all; great work taking the initiative of updating WTForm to
Django 1.0.
> After playing with WTForm a bit it became clear that it wasn't
> flexible enough for the task at hand at that time, so I created all
> HTML manually instead in that project. As I'm not using WTForm in any
> of my projects, I don't currently have an incentive to maintain
> WTForm.
That's kind of the point where I arrived at too.
> All this said, I agree that fieldsets would be an appropriate addition
> to the forms library. See also ticket #8272: http://code.djangoproject.com/ticket/8272
Other than fieldsets I really believe adding CSS class attributes to the
parent HTML markup (<tr>, <p> or <li> that is, depending on the
rendering) containing the field type, the widget and a required flag
would ease the work of web designers a lot. I know it has helped our web
designer a lot.
http://www.technobabble.dk/2008/oct/09/hacking-django-forms-css-flexibility/
> I'll try to pull Christian into this discussion as well.
You succeeded :)
Regards,
Christian
--
Christian Joergensen
http://www.technobabble.dk