From: Marek K. <pyt...@we...> - 2004-04-26 12:16:03
|
On Mon, 26 Apr 2004 07:10:37 -0400 Scott Russell <sc...@to...> wrote: > On Mon, 2004-04-26 at 07:08, Marek Kubica wrote: > > Trying to run it: > > File "C:\sqlobject\sqlobject\main.py", line 943, in dropTable > > if ifExists and not cls._connection.tableExists(cls._table): > > AttributeError: 'NoneType' object has no attribute 'tableExists' > > > > That doesn't wonder. But where in sqlite can I find tableExists? > > > First, you need to read your error. This is a basic python error, > stating that your code is trying to call a method of None, of which > none exist. Something failed to initialize. In my file there is a line gadfly = None but in the sqlite file it's the same sqlite = None > As for the question you thought you were asking: You may want to try a > grep in the sqlobject source. _connection isn't a sqllite object here, > it's a SO SQLiteConnection... > Might I suggest you go and really deeply understand how SO (or at > least it's connection management) and python work before trying this? > Otherwise, you'll wind up asking a lot more questions that you could > easily answer yourself. Where I can find informations about SO? greets, Marek |