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

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)!
Sorry about the top-posting.

best,
Miguel


_______________________________________________________________________________________
Com Cofidis Conta Certa, voce decide…
Saiba mais em http://www.iol.pt/correio/rodape.php?dst=0701161



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

Reply via email to