Hello,

> html = fa.FieldRender(bind=client, column='email').render()
> 
> Nicely done, Alexandre!  I see you are already planning to support
> input validation.  Are you thinking of supporting alternate layouts
> such as a table grid?

Yes, I'm working on validation right now. I'm reorganizing the project's 
source code as the project grows. I already have an experimental version 
of table rendering from an item of a collection of items.

 From the latest trunk, you'll be able to do something like this:

import sqlalchemy as sa
import formalchemy as fa
import mymodel
session = sa.create_session()
client = session.query(mymodel.Client).get_by(clientid='aclient')

# For generating fields in a HTML <fieldset>
print fa.FieldSet(bind=client).render()

# For generating a table from a single item.
print fa.TableItem(bind=client).render()

# For generating a table from a collection of items.
client_list = session.query(mymodel.Client).all()
print fa.TableCollection(bind=mymodel.Client, collection=client_list)

The collection can be an empty list and the bound model can be 
uninstantiated.

But we don't want to take over the SQLAlchemy list. So let's rather talk 
about FormAlchemy on the FormAlchemy list:

   http://groups.google.com/group/formalchemy

:)

Regards,
-- 
Alexandre CONRAD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to