Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
d94dea7d
Commit
d94dea7d
authored
Dec 16, 2015
by
E. Kolpakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved _get_unique_id method - uses block's usage_id
parent
a5c0c18b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drag_and_drop_v2/drag_and_drop_v2.py
+3
-3
No files found.
drag_and_drop_v2/drag_and_drop_v2.py
View file @
d94dea7d
...
...
@@ -421,12 +421,12 @@ class DragAndDropBlock(XBlock):
return
{
'result'
:
'success'
}
def
_get_unique_id
(
self
):
usage_id
=
self
.
scope_ids
.
usage_id
try
:
unique_id
=
self
.
location
.
name
# pylint: disable=no-member
return
usage_id
.
name
except
AttributeError
:
# workaround for xblock workbench
unique_id
=
self
.
parent
and
self
.
parent
.
replace
(
'.'
,
'-'
)
return
unique_id
return
usage_id
@staticmethod
def
_is_correct_input
(
item
,
val
):
...
...
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