I follow instructions in
http://wiki.pylonshq.com/display/pylonscookbook/SQLAlchemy+0.4+for+people+in+a+hurry
a piece of my model/__init__.py file:
# ...
Session = scoped_session(sessionmaker(autoflush=True,
transactional=True, bind=config['pylons.g'].sa_engine))
metadata = MetaData()
table1 = table("table1", metadata,
Column("id", types.Integer, primary_key=True),
)
# ...
I execute:
paster setup-app development.ini
and get:
...
File "...\model\__init__.py", line 16, in <module>
Column("id", types.Integer, primary_key=True),
File "build\bdist.win32\egg\sqlalchemy\sql.py", line 649, in table
File "build\bdist.win32\egg\sqlalchemy\sql.py", line 2887, in
__init__
File "build\bdist.win32\egg\sqlalchemy\sql.py", line 1932, in
_export_columns
File "build\bdist.win32\egg\sqlalchemy\sql.py", line 2904, in
_proxy_column
File "build\bdist.win32\egg\sqlalchemy\sql.py", line 2897, in
append_column
AttributeError: 'MetaData' object has no attribute 'name'
What is wrong?..
thx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---