I'm getting errors when I try to join multiple fields from one table to another. can anybody help me? I'm stuch reading documents for hours with no luck.

here is the table definitions : http://pastebin.com/m1c358058

---------

  1.
     class Person(DeclarativeBase):
  2.
         __tablename__ = 'person'
  3.
         id = Column(Integer,primary_key=True)
  4.
         name = Column(Unicode(50), index=True, unique=True,
     nullable=False)
  5.
         email = Column(Unicode(100), index=True)
  6.
         address = Column(Unicode(255), index=True)
  7.
8.
     #ürün tablosu
  9.
     class Message(DeclarativeBase):
 10.
         __tablename__ = 'message'
 11.
         id = Column(Integer, primary_key=True)
 12.
         message_text = Column(Unicode(1000), index=True)
 13.
         from_person_id = Column(Integer, ForeignKey('person.id'),
     nullable=False)
 14.
         from_person = relation('Person', foreign_keys=from_person_id,
     backref='messages_sent')
 15.
         to_person_id = Column(Integer, ForeignKey('person.id'),
     nullable=False)
 16.
         to_person = relation('Person', foreign_keys=to_person_id,
     backref='messages_rcvd')
 17.

------------



--
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