On Nov 29, 2011, at 6:00 PM, Paul McNett wrote:

> class MyForm(...):
>   def isAnyChanged(self):
>     for biz in self.bizobjs:  ## you need to manually put your bizobjs in here
>       if biz.isAnyChanged():
>         return True
>     return False

        Even simpler:

class MyForm(...):
        def isAnyChanged(self):
                return any([biz.isAnyChanged() for biz in 
self.bizobjs.values()])


-- 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]

Reply via email to