Re: [sqlalchemy] Re: Dynamic relations...

2011-02-16 Thread Martijn Moeling
Michael, I have it all working now!!! What I had to do was to filter out records in the Mapperextension with the data in the Extra record. Next to that I got a lot of errors since the relations where pointing to non-existant records not added in the append_result. So I set up a MapperExtension

Re: [sqlalchemy] Re: Dynamic relations...

2011-02-16 Thread Michael Bayer
On Feb 16, 2011, at 6:19 AM, Martijn Moeling wrote: Michael, I have it all working now!!! What I had to do was to filter out records in the Mapperextension with the data in the Extra record. Next to that I got a lot of errors since the relations where pointing to non-existant records

Re: [sqlalchemy] Re: Dynamic relations...

2011-02-14 Thread Martijn Moeling
Eric (and Michael), Thank you for your comments, I agree with you totally. I am not much of a database guy and never have been. During my education I did not pay much attention to those lessons either, I was just interested in positive grades. I dropped the database stuff as quickly as

Re: [sqlalchemy] Re: Dynamic relations... !!

2011-02-14 Thread Martijn Moeling
Michael, I have implemented your example into my code and although it sort of works, It does not fit into the whole system as expected, somehow I think it is way to complex for what I want. It should be much more simple In the basis I want a class Extra, in this example I'll use queries to

Re: [sqlalchemy] Re: Dynamic relations... !!

2011-02-14 Thread Michael Bayer
On Feb 14, 2011, at 2:02 PM, Martijn Moeling wrote: Michael, I have implemented your example into my code and although it sort of works, It does not fit into the whole system as expected, somehow I think it is way to complex for what I want. It should be much more simple In the

[sqlalchemy] Re: Dynamic relations...

2011-02-13 Thread Eric Ongerth
Polymorphic associations pop up a lot around here, don't they! I suppose it's partly because they would be so much more difficult to handle, or even come close to handling, conveniently, with most other ORM packages. Martijn, after running into the wall on polymorphic associations approximately

[sqlalchemy] Re: dynamic relations

2007-12-07 Thread Michael Bayer
im glad people are finally using dynamic relationstry out rev 3869. On Dec 7, 2007, at 10:25 AM, Vladimir Iliev wrote: from sqlalchemy import * from sqlalchemy.orm import * metadata = MetaData('sqlite://') #~ metadata.bind.echo = 'debug' companies = Table('companies', metadata,

[sqlalchemy] Re: dynamic relations

2007-12-07 Thread Vladimir Iliev
i'm glad you're always so responsive ;-) Michael Bayer написа: im glad people are finally using dynamic relationstry out rev 3869. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post