Re: [dabo-users] fastest way to determine if there's a change

Author: Ed Leafe

Posted: 2011-11-29 at 20:19:08

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: Dabo-users@leafe.com

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/D6C16FC1-7CF9-445F-957A-66D3159939B5@leafe.com

©2011 Ed Leafe