[dabo-users] M-M-Relations

2011-11-30 Thread Sibylle Koczian
Hello, I'm trying to use the new methods for many-to-many relationships. I've taken a small program using the recipes database from the PyCon tutorial: just one window with a datagrid showing the recipes and a checklist showing the categories, with the categories for the selected recipe checke

Re: [dabo-users] M-M-Relations

2011-11-30 Thread Ed Leafe
On Nov 30, 2011, at 9:09 AM, Sibylle Koczian wrote: > Should I put the complete script to dabo.codepad.org? It's not very long. Please do - it would make debugging a lot easier. > I didn't find an example for many-to-many relationships in the wiki and > the tutorial doesn't use the new

Re: [dabo-users] M-M-Relations

2011-11-30 Thread Paul McNett
On 11/30/11 7:09 AM, Sibylle Koczian wrote: > Should I put the complete script to dabo.codepad.org? It's not very long. Yes. You could also turn on the dbActivityLog and see the SQL run to get the categories, which should look something like: """ select reccats.id as id, reccats.name as

Re: [dabo-users] M-M-Relations

2011-11-30 Thread Sibylle Koczian
Am 30.11.2011 17:40, schrieb Ed Leafe: > On Nov 30, 2011, at 9:09 AM, Sibylle Koczian wrote: > >> Should I put the complete script to dabo.codepad.org? It's not very long. > > Please do - it would make debugging a lot easier. > Done: http://dabo.codepad.org/Kl9eb4kM The database is the re

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

2011-11-30 Thread John Fabiani
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(): > >

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

2011-11-30 Thread Paul McNett
On 11/30/11 11:38 AM, John Fabiani wrote: > Is it possible that there could a timing issue using the above method? It > seems that return value is not always true after editing a value on the form. Make sure focus has left the control, or call form.activeControlValid() first. Paul _

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

2011-11-30 Thread John Fabiani
On Wednesday, November 30, 2011 11:40:22 AM Paul McNett wrote: > On 11/30/11 11:38 AM, John Fabiani wrote: > > Is it possible that there could a timing issue using the above method? > > It seems that return value is not always true after editing a value on > > the form. > Make sure focus has left