Hi,
I have tried all kinds of tutorials, but I cant get two simple tables
mapped.
Here are the tables:
class User(object):
def __init__(self,username,password):
self.username = username
self.password = password
class Email(object):
def __init__(self, address, user):
self.address = address
self.user = user
All I wish to accomplish is the following:
tom_user = User("tom","passy")
tom_email = Email("[email protected]", tom_user)
session.add(tom_user)
session.add(tom_email)
session.commit()
But this doesnt work, can someone flesh out the tables and the mapping
for me so I know what I am doing wrong.
Thanks
Kashif
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---