> > Take a webservice as an example, doesn't have a form to present. Does 
> the model need it? 
> > 
> >Just because one consumer of a model doesn't require a particular 
> attribute does not mean that attribute doesn't belong to the model. The 
> webservice might not need the model's validators either, but that doesn't 
> mean the model shouldn't have validators. 
>
> Yes, the webservice need them. To insert, update and delete, data need to 
> be validated. 
>

A read-only webservice does not need validation. Anyway, the point was that 
the model need not be defined as the minimal set of attributes required by 
any given consumer.

Anthon 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to