Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
WTForm should be inbuilt to Django, and make admin & others use it.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jari Pennanen  
View profile  
(1 user)  More options Mar 18, 8:06 pm
From: Jari Pennanen <jari.penna...@gmail.com>
Date: Wed, 18 Mar 2009 17:06:43 -0700 (PDT)
Local: Wed, Mar 18 2009 8:06 pm
Subject: WTForm should be inbuilt to Django, and make admin & others use it.
WTForm is simple implementation built on top of existing (new)forms to
help create fieldsets, and by judging django snippets alone one can
see it's a huge hole in Django. Everyone has wondered why the heck
doing those fieldsets is such a pain when in admin it is super easy,
and it turns out the Django admin's way is unusable in elsewhere.
Thats the way I ended up doing my own fieldset implementation long ago
to ds, but as usual it went unmaintained.

When I had lost all will to Django ever implementing this, someone had
redone something similar, WTForm http://www.djangosnippets.org/snippets/214/
(unmaintained) with more care on details. Though it also went
unmaintained until akaihola took it to his care:

WTForm *Maintained* by akaihola found here http://github.com/akaihola/django-wtform/tree/master
works with Django 1.0 supposedly.

The maintained version could be added to Django, and start refactoring
parts of Django to make use of it. I mean Django admin should
definitely use this WTForm somehow, it is way more DRY than the one in
place now for the Fieldsets.

I wish people has some thoughts about this...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Tyson  
View profile  
(1 user)  More options Mar 18, 8:11 pm
From: Joe Tyson <j...@routespot.com>
Date: Wed, 18 Mar 2009 17:11:48 -0700 (PDT)
Local: Wed, Mar 18 2009 8:11 pm
Subject: Re: WTForm should be inbuilt to Django, and make admin & others use it.
I really hate to be a pessimist, but if the functionality already
exists for that much generation, why bother integrating it with the
main django package?

On Mar 18, 8:06 pm, Jari Pennanen <jari.penna...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Malcolm Tredinnick  
View profile  
(1 user)  More options Mar 18, 8:24 pm
From: Malcolm Tredinnick <malc...@pointy-stick.com>
Date: Thu, 19 Mar 2009 11:24:39 +1100
Local: Wed, Mar 18 2009 8:24 pm
Subject: Re: WTForm should be inbuilt to Django, and make admin & others use it.
On Wed, 2009-03-18 at 17:06 -0700, Jari Pennanen wrote:

[...]

> I wish people has some thoughts about this...

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Florenzano  
View profile  
(1 user)  More options Mar 18, 8:38 pm
From: Eric Florenzano <flo...@gmail.com>
Date: Wed, 18 Mar 2009 17:38:45 -0700 (PDT)
Local: Wed, Mar 18 2009 8:38 pm
Subject: Re: WTForm should be inbuilt to Django, and make admin & others use it.
If anyone else read this and was as confused as I was at first, make
sure to note that this is different than WTForms[1], which is an
alternate form library that took several of its cues from Django's
newforms.

[1] http://wtforms.simplecodes.com/

Thanks,
Eric Florenzano


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sime  
View profile  
(1 user)  More options Mar 19, 5:38 pm
From: sime <si...@slicmedia.com>
Date: Thu, 19 Mar 2009 14:38:49 -0700 (PDT)
Local: Thurs, Mar 19 2009 5:38 pm
Subject: Re: WTForm should be inbuilt to Django, and make admin & others use it.
Definite +1. The lack of fieldsets has tripped me up plenty of times.

On Mar 19, 10:06 am, Jari Pennanen <jari.penna...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
akaihola  
View profile  
 More options Mar 22, 5:47 am
From: akaihola <akaih...@gmail.com>
Date: Sun, 22 Mar 2009 02:47:33 -0700 (PDT)
Local: Sun, Mar 22 2009 5:47 am
Subject: Re: WTForm should be inbuilt to Django, and make admin & others use it.
On 19 maalis, 02:24, Malcolm Tredinnick <malc...@pointy-stick.com>
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.

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.

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

I'll try to pull Christian into this discussion as well.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Joergensen  
View profile  
(1 user)  More options Mar 22, 8:43 am
From: Christian Joergensen <m...@razor.dk>
Date: Sun, 22 Mar 2009 13:43:17 +0100
Local: Sun, Mar 22 2009 8:43 am
Subject: Re: WTForm should be inbuilt to Django, and make admin & others use it.
Hello,

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-flexi...

> I'll try to pull Christian into this discussion as well.

You succeeded :)

Regards,

Christian

--
Christian Joergensen
http://www.technobabble.dk


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google