From: Rick Flosi <rflosi@im...> - 2005-10-20 21:33:01
I'm getting the following traceback when trying to use
Traceback (most recent call last):
File "/usr/local/bin/sqlobject-admin", line 7, in ?
File "/usr/home/rflosi/co/SQLObject/scripts/sqlobject-admin", line 35, in ?
File "/usr/home/rflosi/co/SQLObject/sqlobject/manager/command.py", line 102, in run
File "/usr/home/rflosi/co/SQLObject/sqlobject/manager/command.py", line 233, in run
File "/usr/home/rflosi/co/SQLObject/sqlobject/manager/command.py", line 863, in command
files[fn] = ''.join([
AttributeError: 'tuple' object has no attribute 'strip'
This is because of 'cls.createTableSQL().strip()' on line 869.
cls.createTableSQL() returns a tuple list this:
('CREATE TABLE category (\n id SERIAL PRIMARY KEY,\n name TEXT NOT
NULL UNIQUE,\n sort INT NOT NULL\n)\nCREATE TABLE category_product
(\ncategory_id INT NOT NULL,\nproduct_id INT NOT NULL\n)\n', )
It looks like it wants to create the supporting table 'category_product'
along with 'category'. I don't really want that to happen. I don't know
what the empty list is supposed to be. Constraints maybe.
Anyone using sqlobject-admin record and having this problem or able to