Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7e9f917f
Commit
7e9f917f
authored
Aug 12, 2014
by
Oleg Marshev
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4237 from starteam/master
Fix for empty imsx_messageIdentifier
parents
4e8a2902
be17040f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
AUTHORS
+1
-0
common/lib/xmodule/xmodule/lti_module.py
+1
-1
No files found.
AUTHORS
View file @
7e9f917f
...
...
@@ -168,3 +168,4 @@ Juanan Pereira <juanan.pereira@ehu.es>
Clinton Blackburn <cblackburn@edx.org>
Dennis Jen <djen@edx.org>
Filippo Valsorda <hi@filippo.io>
Ivica Ceraj <ceraj@mit.edu>
common/lib/xmodule/xmodule/lti_module.py
View file @
7e9f917f
...
...
@@ -694,7 +694,7 @@ oauth_consumer_key="", oauth_signature="frVp4JuvT1mVXlxktiAUjQ7%2F1cw%3D"'}
parser
=
etree
.
XMLParser
(
ns_clean
=
True
,
recover
=
True
,
encoding
=
'utf-8'
)
root
=
etree
.
fromstring
(
data
,
parser
=
parser
)
imsx_messageIdentifier
=
root
.
xpath
(
"//def:imsx_messageIdentifier"
,
namespaces
=
namespaces
)[
0
]
.
text
imsx_messageIdentifier
=
root
.
xpath
(
"//def:imsx_messageIdentifier"
,
namespaces
=
namespaces
)[
0
]
.
text
or
''
sourcedId
=
root
.
xpath
(
"//def:sourcedId"
,
namespaces
=
namespaces
)[
0
]
.
text
score
=
root
.
xpath
(
"//def:textString"
,
namespaces
=
namespaces
)[
0
]
.
text
action
=
root
.
xpath
(
"//def:imsx_POXBody"
,
namespaces
=
namespaces
)[
0
]
.
getchildren
()[
0
]
.
tag
.
replace
(
'{'
+
lti_spec_namespace
+
'}'
,
''
)
...
...
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