On Monday 19 March 2007 20:10, Paul McNett wrote:
> dabo Commit
> Revision 2937
> Date: 2007-03-19 20:10:49 -0700 (Mon, 19 Mar 2007)
> Author: Paul
> Trac: http://svn.dabodev.com/trac/dabo/changeset/2937
>
> Changed:
> U trunk/dabo/biz/test/test_dBizobj.py
> U trunk/dabo/db/dCursorMixin.py
> U trunk/dabo/db/test/test_dCursorMixin.py
>
> Log:
> Fixed dCursorMixin to not take into account brand-new records in
> isChanged(). A brand-new record is one that has just its initial values,
> including those gotten from DefaultValues.
>
> Please test and let me know if this is correct. Honestly, it still feels
> somewhat odd to me, but I'll get over it. :)
Trouble in river city! If I add the self.FillLinkFromParent = True in the
child then the bizobj thinks a change has occurred. Even though the user
hasn't changed anything. I'm sure this is because a value is inserted into
the cursor.
Also I can't get bizobj.DefaultValues to work.
I set Childbizobj.DefaultValues = {"ccustno":"SSIFOO"} but the "ccustno" field
is not updated with 'SSIFOO' in the child
I also attempted to use a function as in
bizobj.DefaultValues = {"ccustno":self._getCustno}
the notes for bizobj.DefaultValues suggest that the function would be called
when a biz.new() was called. Again it did not work.
What I am trying to do is update a (non fk) field with data from the parent
table. Strictly speaking it is not required - but it does make reporting a
little easier.
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev