|
From: <bov...@us...> - 2009-04-09 18:22:40
|
Revision: 1488
http://pywebsvcs.svn.sourceforge.net/pywebsvcs/?rev=1488&view=rev
Author: boverhof
Date: 2009-04-09 18:22:36 +0000 (Thu, 09 Apr 2009)
Log Message:
-----------
M ZSI/TC.py
The bug I thought you came across is a known problem with minidom resolving the default namespace.
""Minidom bug in ParsedSoap: Default namespace is empty - ID: 1810600"""
But I plugged in 4Suite, without any modifications from my formula ( maybe a versioning difference in regards to 4Suite ), and got the same error. So I looked at TC.py and found the problem, it's trivial, probably occurred as a result of some refactoring since it is correctly handled elsewhere.
Modified Paths:
--------------
trunk/zsi/ZSI/TC.py
Modified: trunk/zsi/ZSI/TC.py
===================================================================
--- trunk/zsi/ZSI/TC.py 2009-04-07 00:02:42 UTC (rev 1487)
+++ trunk/zsi/ZSI/TC.py 2009-04-09 18:22:36 UTC (rev 1488)
@@ -213,7 +213,15 @@
# Parse the QNAME.
prefix,typeName = SplitQName(typeName)
- uri = ps.GetElementNSdict(elt).get(prefix)
+ nsdict = ps.GetElementNSdict(elt)
+ prefix = prefix or ''
+
+ try:
+ uri = nsdict[prefix]
+ except KeyError, ex:
+ raise EvaluateException('cannot resolve prefix(%s)'%prefix,
+ ps.Backtrace(elt))
+
if uri is None:
raise EvaluateException('Malformed type attribute (bad NS)',
ps.Backtrace(elt))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|