Using SQLAlchemy with Pylons -> Data queries and modifications

2009-01-05 Thread Vadim Khaskel
Hi all! I’m going through Using SQLAlchemy with Pylons tutorial and having problems with population of database. (Data queries and modifications). Tables from tutorials were created without problems. I have methode in my hello.py file: def loadinfo(self): mr_jones = model.

Re: Using SQLAlchemy with Pylons -> Data queries and modifications

2009-01-05 Thread Dalius Dobravolskas
Hello, Vadim, > def loadinfo(self): > > mr_jones = model.Person() > > mr_jones.name = 'Mr Jones' > > model.meta.Session.save(mr_jones) > > model.meta.Session.commit() The problem is in how you have created session. Since I don't know what's your SqlAlchemy version

RE: Using SQLAlchemy with Pylons -> Data queries and modifications

2009-01-06 Thread Vadim Khaskel
To: pylons-discuss@googlegroups.com > Subject: Re: Using SQLAlchemy with Pylons -> Data queries and modifications > > > Hello, Vadim, > > > def loadinfo(self): > > > > mr_jones = model.Person() > > > > mr_jones