dia r4259 - in trunk: . plug-ins/python
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r4259 - in trunk: . plug-ins/python
- Date: Fri, 6 Feb 2009 15:31:29 +0000 (UTC)
Author: hans
Date: Fri Feb 6 15:31:29 2009
New Revision: 4259
URL: http://svn.gnome.org/viewvc/dia?rev=4259&view=rev
Log:
2009-02-06 Hans Breuer <hans breuer org>
* plug-ins/python/diasvg_import.py : remove exception for error output
Modified:
trunk/ChangeLog
trunk/plug-ins/python/diasvg_import.py
Modified: trunk/plug-ins/python/diasvg_import.py
==============================================================================
--- trunk/plug-ins/python/diasvg_import.py (original)
+++ trunk/plug-ins/python/diasvg_import.py Fri Feb 6 15:31:29 2009
@@ -62,7 +62,7 @@
if s[-1] == "%" :
return float(s[:-1]) * dfViewLength / 100.0
# warn about invalid unit ??
- print "Unknown unit", s[:-2], s[-2:]
+ raise NotImplementedError("Unknown unit %s %s" % (s[:-2], s[-2:]))
return float(s) * dfUserScale
def Color(s) :
# deliver a StdProp compatible Color (or the original string)
@@ -675,7 +675,8 @@
layer = data.add_layer("Errors")
s = "To hide the error messages delete or disable the 'Errors' layer\n"
for e in self.errors.keys() :
- s = s + e + " -> " + str(self.errors[e]) + "\n"
+ s = s + str(e) + " -> " + str(self.errors[e]) + "\n"
+
o = Text()
o.props["fill"] = "red"
o.Set(s)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]