Re: [SQLObject] parent attributes not found in children
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2005-07-12 17:11:56
|
Hello! I'm still working. On Wed, Jun 22, 2005 at 05:19:53PM +1000, Jamie Wilkinson wrote: > class ledger(sqlobject.inheritance.InheritableSQLObject): > """parent class with some attributes""" > > _connection = connection > > # the accounts credited and debted for this ledger row > creditor = sqlobject.ForeignKey('account') > debtor = sqlobject.ForeignKey('account') > > # the amount ledged > amount = sqlobject.CurrencyCol() > > class payment(ledger): I've found the inheritance code specificall avoid inheriting ForeignKey. I am trying to understand this... Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |