# HG changeset patch # User Jérémie Gavrel <jeremie.gavrel@xcg-consulting.fr> # Date 1422026599 -3600 # Fri Jan 23 16:23:19 2015 +0100 # Node ID 781445e6c69ac9a5bf10337d3f642b6d1750e80d # Parent 1424e15a3f78ed6f7c77da54ba2db0e18a306913 Corrected previous commit diff --git a/analytic_structure.py b/analytic_structure.py --- a/analytic_structure.py +++ b/analytic_structure.py @@ -313,7 +313,7 @@ modifiers = json.loads(elem.attrib.get('modifiers', {})) attrs['modifiers'] = json.dumps({ attr: value for attr, value in modifiers.iteritems() - if attr == 'readonly' or + if attr != 'readonly' or elem.attrib.get(attr, 'False') in ('True', 'true', '1') }) for attr, value in elem.attrib.iteritems():