On 10/3/06, Ian Bicking <[EMAIL PROTECTED]> wrote:
> Shannon -jj Behrens wrote:
> > I'm heading down the road of using Genshi to automatically populate
> > form field values and error messages as described
> > <http://genshi.edgewall.org/wiki/GenshiRecipes/FormFilling>.  It sure
> > would be nice to automatically create the form fields and do
> > validation (a la FormEncode) simply via data provided in the model
> > (SQLAlchemy) as done in Django
> > <http://www.djangoproject.com/documentation/forms/>.  Is anyone doing
> > this?
>
> You might find this to be a useful example of extracting a schema from
> SQLObject classes:
> http://svn.colorstudy.com/FormEncode/trunk/formencode/sqlschema.py
>
> The module will probably go away, but the implementation might be useful
> to you.  It doesn't create widgets from a model class, but you could use
> a similar pattern for that too.  Then it just needs some really good
> glue, as the glue is non-trivial.

Thanks, Ian.  I guess that's a start.  I wonder if anyone out there
has followed this through :-/

Best Regards,
-jj

-- 
The one who gets the last laugh isn't the one who did the laughing,
but rather the one who did the writing.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to