[sqlalchemy] Error using Versioned objects and Association Proxy together

2011-06-24 Thread 371c
Hi all, I have a problem when using the versioned recipe together with Association proxy. Some code may make this clear: import... class ItemKeywordAsso(Base): __tablename__ = item_keywords id = Column(Integer, primary_key=True) item_id = Column(Integer,

[sqlalchemy] Re: Reusing sqlalchemy models across several web apps

2011-05-21 Thread 371c
:41 am, Michael Bayer mike...@zzzcomputing.com wrote: On May 19, 2011, at 11:06 AM, 371c wrote: Hi all, Scenario: i have a couple of models that i'd like to reuse across 3 different web apps (w1, w2, w3). The idea is to: * create a separate project (eg. models_app) to be installed

[sqlalchemy] Reusing sqlalchemy models across several web apps

2011-05-19 Thread 371c
Hi all, Scenario: i have a couple of models that i'd like to reuse across 3 different web apps (w1, w2, w3). The idea is to: * create a separate project (eg. models_app) to be installed into the python env via python setup install - sort of like a shared library. * In w1, w2 and/or w3, import

[sqlalchemy] sqlalchemy.exc.NoReferencedTableError: Could not find table with which to generate a foreign key

2011-03-30 Thread 371c
Hi, I have the following setup: myapp.models.notes.py Note model defined here using declarative base myapp.models.users.py User model defined here using declarative base myapp.models.meta.py Base and DBSession defined here to avoid circular imports... myapp.lib.bootstrap.py Called to

[sqlalchemy] Re: sqlalchemy.exc.NoReferencedTableError: Could not find table with which to generate a foreign key

2011-03-30 Thread 371c
are created. I'd still like to know why this is happening because i don't intend to put al my models in the same module.. Thanks, On Wed, Mar 30, 2011 at 3:36 PM, 371c 371c@gmail.com wrote:         Hi,         I have the following setup:         myapp.models.notes.py         Note model

[sqlalchemy] Re: sqlalchemy.exc.NoReferencedTableError: Could not find table with which to generate a foreign key

2011-03-30 Thread 371c
are created. I'd still like to know why this is happening because i don't intend to put al my models in the same module.. Thanks, On Wed, Mar 30, 2011 at 3:36 PM, 371c 371c@gmail.com wrote:         Hi,         I have the following setup:         myapp.models.notes.py         Note model