Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
djnro
Commits
d9a68b19
Commit
d9a68b19
authored
Nov 07, 2012
by
Leonidas Poulopoulos
Browse files
Fixed small typo that caused realm_data.xml to be invalid
parent
c6f38d7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
edumanage/views.py
View file @
d9a68b19
...
...
@@ -1323,14 +1323,14 @@ def realmdataxml(request):
ET
.
_namespace_map
[
"http://www.w3.org/2001/XMLSchema-instance"
]
=
'xsi'
root
=
ET
.
Element
(
"realm_data_root"
)
NS_XSI
=
"{http://www.w3.org/2001/XMLSchema-instance}"
root
.
set
(
NS_XSI
+
"noNamespaceSchemaLocation"
,
"realm
-
data.xsd"
)
root
.
set
(
NS_XSI
+
"noNamespaceSchemaLocation"
,
"realm
_
data.xsd"
)
realmdataElement
=
ET
.
SubElement
(
root
,
"realm_data"
)
realmCountry
=
ET
.
SubElement
(
realmdataElement
,
"country"
)
realmCountry
.
text
=
realm
.
country
.
upper
()
nIdpCountry
=
ET
.
SubElement
(
realmdataElement
,
"number_Id
p
"
)
nIdpCountry
=
ET
.
SubElement
(
realmdataElement
,
"number_Id
P
"
)
nIdpCountry
.
text
=
"%s"
%
len
(
realm
.
institution_set
.
filter
(
ertype
=
1
))
nSPCountry
=
ET
.
SubElement
(
realmdataElement
,
"number_SP"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment