It turns out that I was calling the Bizobj's save method rather than the
form's save method.  I've fixed that now and everything works.

On Fri, Oct 1, 2010 at 8:58 AM, Ed Leafe <[email protected]> wrote:

> On Sep 30, 2010, at 11:05 PM, Bronwyn Woods wrote:
>
> > I have a bizobj with a validateRecord method.  When the validateRecord
> > method fails (returns a string), a
> "dabo.dException.BusinessRuleViolation"
> > is printed to the console with the correct error message.  But I can't
> > figure out how to get a dialog to appear or the form's status bar to
> change.
> > The PyCon tutorial seems to suggest this should happen automatically, but
> > since I'm hand coding my forms I probably missed a step.  Can you tell me
> > what the process is for getting that message propagated appropriately?
>
>         The form has a method called 'notifyUser()' that is called when a
> BusinessRuleViolation is caught. By default it displays the error message in
> the status bar and in an informational dialog. Are you trying to call the
> 'validateRecord()' method directly in your code, bypassing the framework?
> That method is called automatically when the form's 'save()' method is
> called.
>
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> 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/[email protected]
>


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
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/[email protected]

Reply via email to