You need to sign in or sign up before continuing.
Unexpected difference between xml representation and value in pylib
I'm currently debugging the following entity in pylib:
(Pdb) old_entity
<Record id="314" description="*[possibly short] description of the event*">
<Parent name="SimulationActivity"/>
<Property name="date" importance="FIX" flag="inheritance:FIX">2022-03-05</Property>
<Property name="identifier" importance="FIX" flag="inheritance:FIX">Monodomain2DMitchellSchaeffer</Property>
<Property name="project" importance="FIX" flag="inheritance:FIX">306</Property>
<Property name="ReadmeFile" importance="FIX" flag="inheritance:FIX">115</Property>
<Property name="responsible" importance="FIX" flag="inheritance:FIX">
<Value>313</Value>
<Value>313</Value>
</Property>
<Property name="simulation_run" importance="FIX" flag="inheritance:FIX">
<Value>312</Value>
<Value>312</Value>
</Property>
<Property name="output" importance="FIX" flag="inheritance:FIX">
<Value>124</Value>
<Value>124</Value>
</Property>
</Record>
Having a look at the property "responsible" revealed:
(Pdb) old_entity.get_property("responsible")
<Property name="responsible">
<Value>313</Value>
<Value>313</Value>
</Property>
and:
(Pdb) old_entity.get_property("responsible").value
[313]
Now I'm lost: why is there only one value in the list, although the XML representation is showing two values.
I'm not sure if it helps, but:
(Pdb) old_entity.get_property("responsible")._wrapped_entity
<Property name="responsible">
<Value>313</Value>
</Property>