>>
>> Oh right, sorry:
>>
>> class Advertiser(Base):
>>    __tablename__ = "advertiser"
>>    id, _id = build_id_column('id', primary_key=True)
>>    salesperson_id, _salesperson_id =
>> build_id_column('salesperson_id', foreign_key=ForeignKey("%s.id" %
>> Salesperson.__tablename__))
>>    salesperson, _salesperson = build_relation(Salesperson)
>
> sorry, that mapping doesn't really make any sense to me.
>
>> Where these build_* functions are returning tuple where the first
>> element is a synonym for the second, which some extra descriptor stuff
>> on it
>> to do the obfuscation.
>
> right but, you don't define synonyms that way.   Its best to stick with the 
> methods in the documentation.
>

Sorry if I'm not explaining myself quite clearly. build_id_column() is
doing exactly what the docs are saying to do,
just trying to abstract out that pattern since it will be used on
every single object in our system, often for multiple cols.

Rhett

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@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.

Reply via email to