On Sep 27, 2011, at 11:35 PM, Vineet Deodhar wrote:

> I hope I am not taxing you too much.
> Again executed my code after grabbing the updated dCursorMixin.py.
> Traceback is---
> 
> SQL select mdlmstid from mdlmst where mdlmstid = %s
> VAL 1
> SQL select wrmstid from wrmst where wrmstid = %s
> VAL 1
> 
> Traceback (most recent call last):
> File "<interactive input>", line 1, in <module>
> File "f:\py\dabovmd\bo3.py", line 117, in <module>
> mdlBizObj.mmAssociateValue(wrBizObj, 'wrmstid', 1)
> File "f:\py\dabo\biz\dBizobj.py", line 2106, in mmAssociateValue
> assoc["cursor"].mmAssociateValue(otherField, otherVal)
> File "f:\py\dabo\db\dCursorMixin.py", line 1172, in mmAssociateValue
> return self.mmAddToBoth(self.KeyField, self.getPK(), otherField, otherVal)
> File "f:\py\dabo\db\dCursorMixin.py", line 1276, in mmAddToBoth
> aux.execute(sql, (thisPK, otherPK))
> File "f:\py\dabo\db\dCursorMixin.py", line 386, in execute
> raise dException.DBQueryException(errMsg)
> DBQueryException: (1048, "Column 'wrmstid' cannot be null")

        That means that the getPK() call for wrmst is returning None, which 
indicates a problem with the bizobj.

        I have your test code from an earlier message; instead of constantly 
going back and forth and getting your tests, I think I'll try to reproduce what 
you're running to see if I can get this working correctly. I'm not sure when 
I'll have the time to get to it, so if you don't hear from me for a few days, 
please send me an email to remind me.


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

Reply via email to