I am trying to write a datagrid library for sqlalchemy which will allow easy generation of tables from SA objects. I would like the datagrid to be able to accept a table column, declarative attribute, or elixir entity attribute interchangeably. Since I am building the SQL with queries, this has worked well so far, I just use the objects and SA takes care of the rest.
However, I have recently run into a problem that requires the datagrid to be a little smarter. If someone wants to filter on a date, but leaves the value as None, then I need to convert the empty string to a None. However, I only want to do that for Date/Time SA columns. So, how can I extract the SA column object from a declarative attribute or elixir entity? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---