This is in the Form's createBizobjs():
class AuthorBizobj(dabo.biz.dBizobj):
def afterInit(self):
self.DataSource = "author"
self.KeyField = "author_id"
self.addFrom("author")
self.addField("author_id")
self.addField("authorname")
def validateRecord(self):
"""Returning anything other than an empty string from
this method will prevent the data from being saved.
"""
ret = ""
# Add your business rules here.
return ret
self.addBizobj(AuthorBizobj(self.Connection))
And this in the Form too:
def afterInitAll(self):
self.requery()
The rest are just properties in the designer. If you which I can paste the
cdxml (but that is a little larger)!
best,
Miguel
----- Mensagem Original -----
De: Carl Karsten <[EMAIL PROTECTED]>
Data: Segunda-Feira, 23 de Abril de 2007, 19:23
Assunto: Re: [dabo-users] problem with data-environment
> The files are just text, cut/paste them into a message. (hope
> they aren't too big)
>
> You may want to find just the relevant parts.
>
> Carl K
>
> ps, top posting a reply to a bottom posted message makes it hard
> to read.
>
> [EMAIL PROTECTED] wrote:
> > If it's ok, I'll send it directly to you then.
> >
> > Miguel
> >
> >
> > ----- Mensagem Original -----
> > De: johnf <[EMAIL PROTECTED]>
> > Data: Segunda-Feira, 23 de Abril de 2007, 19:09
> > Assunto: Re: [dabo-users] problem with data-environment
> >
> >> On Monday 23 April 2007 11:02, [EMAIL PROTECTED] wrote:
> >>> I attach an archive with the files involved:
> >>> The db I'm using is SQLite I include the entire stuff since
> it's
> >> really a
> >>> coup of k
> >> Sorry the list will not accept attachments
> >> --
> >> John Fabiani
> >>
> >>
[excessive quoting removed by server]
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]