From: Scott R. <sc...@to...> - 2004-04-26 11:10:53
|
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. 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. |