Fix countries selector on Reports

use strings comparison, avoid encoded Element names
This commit is contained in:
Paul Franklin 2015-10-05 15:49:46 +02:00 committed by romjerome
parent 6ec12af6d7
commit 6f849befe0

View File

@ -305,7 +305,7 @@ class _Xml2Obj:
def start_element(self, name, attributes): def start_element(self, name, attributes):
'SAX start element even handler' 'SAX start element even handler'
# Instantiate an Element object # Instantiate an Element object
element = _Element(name.encode(), attributes) element = _Element(name, attributes)
# Push element onto the stack and make it a child of parent # Push element onto the stack and make it a child of parent
if len(self.nodeStack) > 0: if len(self.nodeStack) > 0:
parent = self.nodeStack[-1] parent = self.nodeStack[-1]