On Wed, Oct 26, 2011 at 10:15 AM, Michael Bayer <mike...@zzzcomputing.com>wrote:

>
> On Oct 26, 2011, at 1:04 PM, James Hartley wrote:
>
> On Wed, Oct 26, 2011 at 2:22 AM, Stefano Fontanelli <
> s.fontane...@asidev.com> wrote:
>
>>
>> Hi James,
>> you cannot define two mapper properties that use the same name.
>>
> If you wish to locate classes based on their string name as you are doing
> in relationship('User') here, the calling class (Address) must share the
> same registry of names that the desired class (User) does.  This registry is
> part of the "Base".   Therefore your entire application needs to have
> exactly one usage of "declarative_base()", where all descending classes use
> the same Base object,  and not one usage per file.
>

This is what I had missed.  Moving the call to declarative_base() to its own
module & importing it as needed has taken care of all remaining problems.
Thank you Michael &  Stefano for taking the time to clear this up.  I
sincerely appreciate it.

Jim

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to