Just trying a simple thing in Pylons 0.9.6rc2, Elixir 0.4 and sqlalchemy 0.4beta3. Going from a wiki on pylonshq.com
http://wiki.pylonshq.com/display/pylonscookbook/SQLAlchemy+for+people+in+a+hurry my Session and sa_engine seem to be getting initialized properly with the code below in my __init__ def in the model directory. However I end up with the error: Could not locate any Engine or Connection bound to mapper 'Mapper|User|user', and when I run in interactive mode and call MetaData() it returns MetaData(none) from elixir import metadata, objectstore, options_defaults from paste.deploy import appconfig import pylons from sqlalchemy import Column, MetaData, Table, types from sqlalchemy.orm import mapper, relation from sqlalchemy.orm import scoped_session, sessionmaker from pylons import config # Global session manager. Session() returns the session object appropriate for the current web request. Session = scoped_session(sessionmaker(autoflush=True, transactional=True, bind=pylons.config['pylons.g'].sa_engine)) # Global metadata. If you have multiple databases with overlapping table names, you'll need a metadata for each # database. metadata = MetaData() # create the classes for the model options_defaults['shortnames'] = True any ideas on what I'm missing? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
