On Aug 26, 2008, at 11:53 PM, johnf wrote:

> I thought that scan just iterated over all the rows of a single  
> bizobj (in
> this case the bizSubopenings) and it was possible to apply a  
> function on each
> of the rows.  I think you are saying that it is also possible to scan
> bizSubopening applying a function to each row of bizSubopening and  
> applying
> the same function to the children and grand children.

        The scan() function does not do that; it simply applies the function  
to each row. Your earlier comment about 'set relation' behavior was  
spot on: scan() explicitly does *not* do that. It uses the  
_moveToRowNum() method, whose docstring reads:

""" For internal use only! Should never be called from a developer's  
code.
It exists so that a bizobj can move through the records in its cursor
*without* firing additional code.
"""

        The other option, for when you *do* want all the additional code  
being fired, is to create a bizIterator object, which internally uses  
self.prior() and self.next() to move through the bizobj's records  
while updating child bizobjs at each step.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to