Hello, I'm busy to make a kind of "mapper exporter/serializer". My goal is to be able to serialize (in JSON, XML, ...) any Mapper object (including relations, etc)
At the moment I've the following code (not finished at all) : http://www.pastie.org/625787 As you can see I'm iterating over mapper.iterate_properties list (line 60), and before I goes any further I wondered if it's the right way to do it ? (I would like to have all the properties, including column type, etc) Another question: I see that the property "columns" of an <sqlalchemy.orm.properties.ColumnProperty> instance is a list and I wondered in which cases the list can contains more than one item ? Thanks, Julien -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: jci...@ulb.ac.be @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---