I'm trying to use SQLAlchemy, but in the line:
session.save(login)
I'm getting this error:
AttributeError: 'Session' object has no attribute 'save'
This is my code:
def findOrCreateLogin(self, username, password):
login = self.findLogin(username)
if login:
return login
else:
login = DBLogin(username,password)
session.save(login)
return login