[EMAIL PROTECTED] wrote:

> One of the points that Rails ActiveRecord got right IMHO is the fact
> that models should validate themselves. So I started to work on adding
> rail-like validation to Elixir entities, using formencode. Here's a
> first Q&D and incomplete attempt, I'm awaiting for criticism,
> suggestions and other feedback.
>
> http://sqlelixir.googlegroups.com/web/entities.py
>
> NB : one of the main differences with ActiveRecords is that this
> modules automagically adds validators based on the entity's fields.

Wow!

I was considering adding statements exactly like these to Elixir, but it
looks like you have done all the work for us :)

I'll take a closer look as soon as I can.  Some examples that illustrate
how to use your statements would be very helpful.

--
Jonathan LaCour
http://cleverdevil.org




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to