> I'm starting with the simplest entity, Sport, so I need to know what
> the allowable values for the properties of a sport are. These are the
> validation rules I am currently assuming:
>
> * description: String, required (default ""), must be unique
> * met: Float, optional
> * weight: Float, required (default 0)
> * max_pace: Int, optional

In addition to those I will also require that met, weight and max_pace
are not negative.

I also just discovered that sport now has a "color" property. Storing
a UI preference in the data model seems wrong but at this stage I
think the easiest thing to do is keep it there but store it as an
integer instead of as a hex string.

 - Nathan

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to