I think you need to add another variable stating the jointype to your
Session class. The SQLObject documentation sort of talks about it here:
http://sqlobject.org/SQLObject.html#one-to-many-relationships

I am guessing you will want to use a SingleJoin here, so your Session
class should look like this:

class Session(SQLObject):
    ip = StringCol(length = 32, alternateID=True)
    FileXferSession = SingleJoin('FileXfer')
    #snip other fields

If you already have created the session table and want to add more
references this can be done with:

Session.sqlmeta.addJoin(SingleJoin('FileXfer',
joinMethodName='FileXferSession'))

I believe that code will have to be placed outside of your FileXfer
class, but that may be wrong.


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

Reply via email to