Użytkownik Ed Leafe napisał:
> On Nov 14, 2009, at 3:25 PM, Jacek Kałucki wrote:
>
>
>> PS: BTW, what about ticket #1299?
>>
> The other changes I committed today now have that working on my end;
> I added a note to the commit for that indicating that I need others to
> test and validate the solution. See http://trac.dabodev.com/changeset/5524
>
>
It's nice to hearing that from you.
If you are so close of subject, could you take a look at my problem please?
I bounded table blob field to dImage.DataField, then on dImage.update()
I receive the following exception:
File
"C:\Python25\lib\site-packages\dabo\ui\dDataControlMixinBase.py", line
97, in update
self.__dataUpdate()
File
"C:\Python25\lib\site-packages\dabo\ui\dDataControlMixinBase.py", line
114, in __dataUpdate
self.Value = src.getFieldVal(self.DataField)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dImage.py", line
281, in _setValue
isFile = os.path.exists(val)
File "C:\Python25\lib\ntpath.py", line 255, in exists
st = os.stat(path)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0:
unexpected code byte
It's because in dImage._setValue() method, in the following code
try:
isFile = os.path.exists(val)
except TypeError:
val is type of buffer and there is not TypeError but UnicodeDecodeError
exception raised.
Any advice please?
--
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]