<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 05/02/12 20:32, Wolfgang Sourdeau wrote:
<blockquote cite="mid:4FA16F95.9090200@inverse.ca" type="cite">
<br>
<blockquote type="cite">
<br>
This indeed fixes my output. Does this seem reasonable?
<br>
<br>
</blockquote>
The only downturn I see is that the default tns is not fallen back
on when __namespace__ is not defined. So this is likely to be
wrong in the general case. I don't know how to reconcile this
though, since __namespace__ will always return something and I
would think comparing this to the class's module name would be
rather hackish.
<br>
<br>
</blockquote>
<br>
<br>
No need to worry about non-defined namespaces, they're substituted
with the module name.<br>
<br>
This commit fixes the issue:<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="https://github.com/plq/rpclib/commit/215b8cf1502eb8f390d595a4cb6c3e4f9285ffdd">https://github.com/plq/rpclib/commit/215b8cf1502eb8f390d595a4cb6c3e4f9285ffdd</a><br>
<br>
Start tags are now in the same namespace as the definitions
themselves. intermediate tags are in the parent's namespace, just as
before.<br>
<br>
In the below example; SomeObject here is the direct child of a senv:
child, so i call it a start tag. Its namespace is the namespace
defined in rpclib model definition. SomeChild is in the s1:
namespace in rpclib.model definition. But its start tag is in its
parent namespace, and its child tag is in SomeChild's own namespace.
<br>
<br>
<senv:Header><br>
<s0:SomeObject><br>
<s0:SomeChild><br>
<s1:SomeString>blah</s1:SomeString><br>
</s0:SomeChild><br>
</s0:SomeObject><br>
</senv:Header><br>
<br>
With the previous behaviour, start tags were always in the tns:
prefix, like the SomeObject case here:<br>
<br>
<senv:Header><br>
<tns:SomeObject> <br>
<s0:SomeChild><br>
<s1:SomeString>blah</s1:SomeString><br>
</s0:SomeChild><br>
</tns:SomeObject><br>
</senv:Header><br>
<br>
<br>
I think this is an important change. Please let me know if you think
this is wrong.<br>
<br>
Best,<br>
Burak<br>
<br>
<br>
</body>
</html>