dBizobj.RequeryOnLoad property unusable

View: New views
4 Messages — Rating Filter:   Alert me  

dBizobj.RequeryOnLoad property unusable

by Jacek Kałucki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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?

--
Regards
Jacek Kałucki

_______________________________________________
Post Messages to: Dabo-users@...
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/4AF95D28.80604@...

Re: dBizobj.RequeryOnLoad property unusable

by Ed Leafe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: Dabo-users@...
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/03395E8A-EBEF-4AB2-BCB1-328D683BDE74@...

Re: dBizobj.RequeryOnLoad property unusable

by Ed Leafe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?


        I just posted a fix. Please verify that the new version of dBizobj  
solves your issue.


-- Ed Leafe



_______________________________________________
Post Messages to: Dabo-users@...
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/1710D2E3-A57C-4E81-9F2A-94A94A413DAF@...

Re: dBizobj.RequeryOnLoad property unusable

by Jacek Kałucki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Użytkownik Ed Leafe napisał:
> I just posted a fix. Please verify that the new version of dBizobj
> solves your issue.
>    

Many thanks, Ed. It's working now.

--
Regards
Jacek Kałucki

_______________________________________________
Post Messages to: Dabo-users@...
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/4AFFEE2A.1060800@...