From: Sandrine Avakian Date: Thu, 27 Oct 2011 13:03:55 +0000 (+0200) Subject: Fixed problems with adding a record: X-Git-Tag: sfa-2.1-24~3^2~317 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1801aa0e8c766c26c391408c0941c7c1abf0ea57;p=sfa.git Fixed problems with adding a record: -Encoding bug in rspec.py - lsits/string problem in registry_manager_slab and trust/auth --- diff --git a/sfa/util/rspec.py b/sfa/util/rspec.py index b888a7d7..1f6f2286 100644 --- a/sfa/util/rspec.py +++ b/sfa/util/rspec.py @@ -6,7 +6,7 @@ from types import StringTypes, ListType import httplib from xml.dom import minidom from lxml import etree - +import codecs from sfa.util.sfalogging import info_logger class RSpec: @@ -194,7 +194,11 @@ class RSpec: """ read an xml string and store it as a dom object. """ + print>>sys.stderr, "\r\n \t RSPEC.PY parseString xml \r\n %s " %(xml) + #xmlUnicode = unicode( xml, 'utf-8' ) + xml = (xml.encode("utf-8")) dom = minidom.parseString(xml) + print>>sys.stderr, "\r\n \t RSPEC.PY OKKK parseString dom \r\n %s " %(dom) self.__removeWhitespaceNodes(dom) self.rootNode = dom.childNodes[0]