On 3/14/06, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 3/13/06, limodou <[EMAIL PROTECTED]> wrote:
> > -1 I agree with gabor. Many orm models don't process validation, and
> > these things should be implemented by manipulator. Why do so much
> > things in model?
>
> Among other things, the model is the place where the types of data are
> specified for a particular class of objects; given that, why have a
> separate layer for the purpose of comparing incoming data to ensure it
> conforms to those? The model is the thing that's supposed to "know"
> this, so why not let it?
>

In most cases we do not do anything alone use model, but always there
is a ui layer, such as gui or web. They have to do any such thing.

And the model can only handle field themself. In some cases, we also
need more time to deal with increased logic, particularly the
relationship between the model, such things as users and conditions,
and These things can not be accomplished only by models. Therefore, we
still need to do a validation independent of the model validation. Had
that been the case, why must it do in the model.  So I think
manipulator is enought and clearly.

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

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

Reply via email to