From: Tony Mack Date: Fri, 5 Aug 2011 19:22:10 +0000 (-0400) Subject: declare namespace and schema location X-Git-Tag: sfa-1.0-30~12 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=70708332c865b3f2499f84f1f202b353b1f79e5b;p=sfa.git declare namespace and schema location --- diff --git a/sfa/trust/credential.py b/sfa/trust/credential.py index 0f5ae15b..4a1d7555 100644 --- a/sfa/trust/credential.py +++ b/sfa/trust/credential.py @@ -423,9 +423,11 @@ class Credential(object): # But it's kind of odd for PL to use PG schemas that talk # about tickets, and the PG CM policies. # Note the careful addition of attributes from the parent below... -# signed_cred.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance") + signed_cred.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance") # signed_cred.setAttribute("xsinoNamespaceSchemaLocation", "http://www.protogeni.net/resources/credential/credential.xsd") # signed_cred.setAttribute("xsi:schemaLocation", "http://www.protogeni.net/resources/credential/ext/policy/1 http://www.protogeni.net/resources/credential/ext/policy/1/policy.xsd") + signed_cred.setAttribute("xsinoNamespaceSchemaLocation", "http://www.planet-lab.org/resources/sfa/credential.xsd") + signed_cred.setAttribute("xsi:schemaLocation", "http://www.planet-lab.org/resources/sfa/ext/policy/1 http://www.planet-lab.org/resources/sfa/ext/policy.xsd") doc.appendChild(signed_cred)