dabo Commit
Revision 6440
Date: 2011-02-16 14:14:20 -0800 (Wed, 16 Feb 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6440

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
Raise an exception if invalid rfxml passed, instead of printing the message
and then having an exception thrown because form isn't defined.

Thanks Carl Karsten for reporting this.




Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2011-02-16 13:42:13 UTC (rev 6439)
+++ trunk/dabo/lib/reportWriter.py      2011-02-16 22:14:20 UTC (rev 6440)
@@ -2509,7 +2509,7 @@
                if xmldict["name"].lower() == "report":
                        form = self._getFormFromXMLDict(xmldict)
                else:
-                       print "This isn't a valid rfxml string."
+                       raise ValueError, "This isn't a valid rfxml string."
 
                return form
 



_______________________________________________
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]

Reply via email to