Michael Can you elaborate a bit on how to do each of the thing you said - metadata sharing between 2 separate Turbogears projects and placing the actual column in the ForeignKey constructor, instead of string 'table.column.id'.
I read your earlier discussion http://groups.google.com/group/sqlalchemy/browse_thread/thread/4db84b9f07236fed/5fa2ee7131798264?lnk=gst&q=metadata+sharing#5fa2ee7131798264 but I am still not clear on how to share the metadata. The only way I can think of is to import the metadata object from one model1 to model2, but that shall require the two pkgs to be present in fixed relative positions. I don't see a common module where I can keep the metadata object and use it in either pkg. JV On Nov 4, 6:19 pm, Michael Bayer <[EMAIL PROTECTED]> wrote: > either share the same MetaData object across those two models, or > place the actual Column object instead of a string in the ForeignKey() > constructor. > > On Nov 4, 2008, at 7:16 AM, JV wrote: > > > > > Hi > > > How can I have a foreign key reference between the models of two > > different TurboGears projects? > > I am using sqlalchemy. > > > JV --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---