Re: [SQLObject] Reference to one of multiple tables

2011-12-30 Thread Oleg Broytman
Well, her I am, sorry for the late answer. On Wed, Dec 28, 2011 at 10:30:28PM +0100, Timo wrote: > class DVD(SQLObject): > status = # Should be sold or onloan data > # ... special "dvd" data > > class Sold(SQLObject): > dvd = ForeignKey('DVD') > # ... special "sold" data > >

Re: [SQLObject] Reference to one of multiple tables

2011-12-30 Thread Timo
2011/12/29 Oleg Broytman > On Thu, Dec 29, 2011 at 03:48:09PM +0100, Frank Wagner wrote: > > http://sqlobject.org/Inheritance.html > Thanks Frank for pointing that out. I usually go directly to the documentation page on the website, so I overlooked this. > > Please be warned this kind of inh

Re: [SQLObject] Reference to one of multiple tables

2011-12-29 Thread Oleg Broytman
On Thu, Dec 29, 2011 at 03:48:09PM +0100, Frank Wagner wrote: > http://sqlobject.org/Inheritance.html Please be warned this kind of inheritance in SQLObject is very limited. The page mentioned above lists some limitations. Timo, I'm going to write a more detailed answer a bit later. Oleg.

Re: [SQLObject] Reference to one of multiple tables

2011-12-28 Thread Petr Jakeš
> I'm stuck at a part of my program, but I'm not sure if this is the right > place to ask. Excuses if it's not. > > I have a DVD object which can have different statusses, like "on loan", > "sold", etc... A dvd can only have 1 status at the time, but I'm confused > about how to link it to 1 table o