On Nov 10, 2009, at 6:31 AM, Jacek Kałucki wrote:
> I noticed, I can't set this property at object creation time.
> Of course I can use dBizobj(RequeryOnLoad=True), but it's ignored,
> because setConnection() in __init__ is called before _initProperties()
> method.
> Only working way is to subclass it and modify beforeInit() method.
> Unfortunately, I'm forced to create two different bizobjs for the same
> database table for mixed property use. Can it be fixed?
Hmmm... I know I used this in the past, but I haven't looked at it in
a while, and yes, you're correct - the _initProperties() does come
later.
Please create a ticket for this, so it doesn't get forgotten. But in
the meantime, does adding a call to 'self.requery()' in the
afterInit() do what you need?
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]