Author: John Fabiani
Posted: 2011-11-29 at 20:38:40
On Tuesday, November 29, 2011 07:19:08 PM Ed Leafe wrote:
> 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
thanks that looks like it could work.
Johnf
_______________________________________________
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/1401715.J1ZknAjJhy@linux-12