hi there,
up to now I did use something like:
c = tblCompany.__table__.columns
COMPANY_FIELDS = [(k, c[k].type.get_col_spec()) for k in c.keys() if not
k=='id']
to build some dynamic forms for a web application.
now this breaks with an error:
AttributeError: 'VARCHAR' object has no attribute 'get_col_spec'
it seems to work still with MySQL but not with postgres. (maybe MySQL
uses a slightly older version out of the 6.xx serie)
what is the "correct" way to build a list of fields a table provides ?
thanks
robert
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en.