comparison engine/extensions/pychan/properties.py @ 335:162662bf5c8a

PyChan fixes: * Fixed stupidity.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 24 Aug 2009 14:53:17 +0000
parents a9482d3d989e
children dfd48d49c044
comparison
equal deleted inserted replaced
334:a9482d3d989e 335:162662bf5c8a
99 # with an _source attribute isn't really clean. 99 # with an _source attribute isn't really clean.
100 # Is it even necessary 100 # Is it even necessary
101 image_info["source"] = getattr(image,"source","") 101 image_info["source"] = getattr(image,"source","")
102 image_info["image"] = image 102 image_info["image"] = image
103 if image_info["source"]: 103 if image_info["source"]:
104 image_info["image"] = get_manager().loadImage(image) 104 image_info["image"] = get_manager().loadImage(image_info["source"])
105 self._getSetter(obj)(image_info["image"]) 105 self._getSetter(obj)(image_info["image"])
106 else: 106 else:
107 attribute_name = "%s.%s" % (obj.__class__.__name__,self.name) 107 attribute_name = "%s.%s" % (obj.__class__.__name__,self.name)
108 error_message = "%s only accepts GuiImage and python strings, not '%s'" 108 error_message = "%s only accepts GuiImage and python strings, not '%s'"
109 raise RuntimeError(error_message % (attribute_name, repr(image))) 109 raise RuntimeError(error_message % (attribute_name, repr(image)))