william wrote:
> I understand you point of view, but what's the solution to simply
> convert string (because  forms send always string) to Int, Date, ... .
>
> I'm, maybe, not useing the validator correctly, but I just want to
> convert the data to be able to enter it into the DB.
>
> Thus what's the TG's solution (or SQLObject's solution) for those (like
> me) who don't want true validators, but simple data converter ?
>
> Should I understand (Kevin's words) that the answer is CRUD ?

I modified both SQLObject and FormEncode so I can use the
validator(which is created from the definition of the table) so I can
do this kind of "first round" conversion.

I then use the converted dict for next round business logic
validation(as needed).

I don't think there is a "right" way of doing it but how we see the
apps. For example, DHH(the guy behind RoR) wants all the
metadata(datatypes etc.) to be in Rail and treat the underlying DB as
pure storage. It seems that TurboGears is kind of moving in that
direction.

I am more old fashioned and want the DB to play a bigger role.

Reply via email to