[sqlalchemy] Accessing classes a table away in a mapper - why does this work?

2009-05-27 Thread Nathan Harmston
Hi, I have been struggling with trying to create relations which reference objects a couple of tables away. e.g Sentence has many entities Entity has many NormalisedVersion NormalisedVersion has one Gene kind of thing and was trying to link from Sentence to genes directly. secondary = entiti

[sqlalchemy] Accessing classes a table away in a mapper

2009-05-18 Thread Nathan Harmston
Hi, I am trying to map a relation in class which allows it to access objects from a couple of tables away ie. class Zone(object): pass class Sentence(object): pass class RawTag(object): pass class ProcessedTag(RawTag): pass mapper(RawTag, tag_table) mapper(Sentence, sentence_ta