On Dec 20, 2006, at 12:06 AM, Carl Karsten wrote:

>    File "/usr/lib/python2.4/site-packages/dabo/db/dCursorMixin.py",  
> line 198, in
> correctFieldType
>      ret = val.tostring()
> NameError: global name 'val' is not defined

        You were trying to grab a blob field from MySQL. I fixed that in my  
local copy of dCursorMixin a couple of days ago, as I was trying to  
figure out how to improve blob handling to the point where we could  
bind a blob field to a dImage control and have it "just work". I'm  
still trying to get that working, which is why I haven't committed  
the fix yet.

        For now, just change the line:
ret = val.tostring()
        to:
ret = field_val.tostring()

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to