On Sep 14, 2007, at 11:08 AM, johnf wrote:

>  I have noticed that (using Postgres) getfields() is being called  
> often for a
> bizobj.  I think it happens for each select statement I make on a  
> bizobj.  I
> would think the bizobj is defined and after the first call nothing  
> should
> change.  So why make the call to getfields()?

        The only place where I can see it being called without caching is  
when the cursor is trying to determine field types. Do this: modify  
your dCursorMixin.py file to include this line at the top:

from dabo.dBug import loggit

...and then around line 1666, add the decorator to the method:

        @loggit
        def getFields(self, tableName=None):
                """ Get field information about the backend table.

        Run the app as you normally would, and after exiting there should be  
a file named 'functionCall.log'. If it isn't too big, paste the  
contents into your reply; otherwise, email it to me off-list.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to