On 9/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I would like to develop some function to analyze the an Entity class > and try to figure out table object relationships and things like that, > with the desire of automatic HTML or Form generation. > > Any ideas where should I start to start digging about the Entity's > information and it's relations to other tables? So far I've seen that > I could do this via the __elixir_statements__ property or via the > mapper of the Entity. > > Any ideas on how to do this? Which way would have information more > easily avaialble?
You should definitely try to introspect the mapper and not the statements. This way, your code will work for both Elixir and raw SQLAlchemy. By the way, have you had a look at FormAlchemy? http://code.google.com/p/formalchemy/ -- Gaƫtan de Menten http://openhex.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 -~----------~----~----~----~------~----~------~--~---
