Re: CharField vs. CharField

2007-07-06 Thread Thomas Güttler

Am Freitag, 6. Juli 2007 10:41 schrieb Malcolm Tredinnick:
> On Fri, 2007-07-06 at 10:35 +0200, Thomas Güttler wrote:
> > Hi,
> >
> > I think it is bad, that there are two CharField classes.
...
> Any particular reason you only want to change CharField? Or any
> technical reason why you think the current situation is bad?

No, this was just an example. I think the base class (and the
used postfix) should be changed to InputField.

But nevermind I can live with the current name, too.

 Thomas

-- 
Thomas Güttler, http://www.tbz-pariv.de/ 
Bernsdorfer Str. 210-212, 09126 Chemnitz, Tel.: 0371/5347-917
TBZ-PARIV GmbH  Geschäftsführer: Dr. Reiner Wohlgemuth
Sitz der Gesellschaft: Chemnitz Registergericht: Chemnitz HRB 8543

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CharField vs. CharField

2007-07-06 Thread Malcolm Tredinnick

On Fri, 2007-07-06 at 10:35 +0200, Thomas Güttler wrote:
> Hi,
> 
> I think it is bad, that there are two CharField classes.
> 
> One for OR-Mapping and one for HTML (new)forms. 
> 
> Why not change the HTML classes to ...InputField?

There are lots of names that are used in both model.fields and
newforms.fields. Most of the names are very natural for the type of
thing they describe. Model fields are only used in models and form
fields are only used in forms, so there shouldn't be too much confusion,
since you are usually going to be working on one or the other at any
given moment.

InputField, on the other hand could mean anything (there are lots of
different types of input fields in HTML); it isn't very
self-descriptive.

Any particular reason you only want to change CharField? Or any
technical reason why you think the current situation is bad?

Regards,
Malcolm

-- 
The sooner you fall behind, the more time you'll have to catch up. 
http://www.pointy-stick.com/blog/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



CharField vs. CharField

2007-07-06 Thread Thomas Güttler

Hi,

I think it is bad, that there are two CharField classes.

One for OR-Mapping and one for HTML (new)forms. 

Why not change the HTML classes to ...InputField?

 Thomas

-- 
Thomas Güttler, http://www.tbz-pariv.de/ 
Bernsdorfer Str. 210-212, 09126 Chemnitz, Tel.: 0371/5347-917
TBZ-PARIV GmbH  Geschäftsführer: Dr. Reiner Wohlgemuth
Sitz der Gesellschaft: Chemnitz Registergericht: Chemnitz HRB 8543

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---