dabo Commit
Revision 6775
Date: 2011-08-09 06:54:58 -0700 (Tue, 09 Aug 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6775
Changed:
U trunk/dabo/ui/uiwx/dImage.py
Log:
- Changed value type detection method.
- Removed unnecessary flushValue method call.
Diff:
Modified: trunk/dabo/ui/uiwx/dImage.py
===================================================================
--- trunk/dabo/ui/uiwx/dImage.py 2011-08-09 13:51:02 UTC (rev 6774)
+++ trunk/dabo/ui/uiwx/dImage.py 2011-08-09 13:54:58 UTC (rev 6775)
@@ -364,8 +364,8 @@
return
self.__val = val
try:
- isFile = os.path.exists(val)
- except (TypeError, UnicodeDecodeError):
+ isFile = os.path.isfile(val)
+ except (TypeError, ValueError):
isFile = False
if not isFile:
# Probably an image stream
@@ -384,8 +384,7 @@
self.__imageData = open(tfname,
"rb").read()
except StandardError,e:
self.__imageData = u""
- self._afterValueChanged()
- self.flushValue()
+ self._afterValueChanged()
else:
self._properties["Value"] = val
_______________________________________________
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]