Can't get a simple #...@%#(#* relation to work. With these, I get "Could
not locate any equated, locally mapped column pairs for primaryjoin
condition 'evidence.device_id = assets.device_id' on relation
Evidence.asset"

class Evidence(DeclarativeBase):
    __tablename__ = 'evidence'

    __table_args__ = {'useexisting': True}

...
    device_id = Column(Unicode, ForeignKey('assets.device_id'))
    asset = relation(Asset, backref=backref('evidences'), primaryjoin
= device_id == Asset.device_id)

class Asset(DeclarativeBase):
    __tablename__ = 'assets'

    __table_args__ = {'useexisting': True}

...
    device_id = Column(Unicode, unique=True)

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to