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
569edd21
Commit
569edd21
authored
Sep 16, 2015
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! fix quality issues.
parent
c2cf9ae0
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
9 additions
and
7 deletions
+9
-7
common/lib/xmodule/xmodule/modulestore/__init__.py
+0
-1
lms/djangoapps/course_api/blocks/forms.py
+1
-1
lms/djangoapps/course_blocks/transformers/tests/test_helpers.py
+0
-0
lms/djangoapps/course_blocks/transformers/tests/test_split_test.py
+1
-1
lms/djangoapps/course_blocks/transformers/tests/test_user_partitions.py
+1
-1
lms/djangoapps/course_blocks/transformers/user_partitions.py
+1
-0
openedx/core/lib/block_cache/graph_traversals.py
+1
-1
openedx/core/lib/block_cache/tests/test_block_cache.py
+0
-0
openedx/core/lib/block_cache/tests/test_block_structure.py
+2
-2
openedx/core/lib/block_cache/tests/test_graph_traversals.py
+0
-0
openedx/core/lib/block_cache/tests/test_utils.py
+1
-0
openedx/core/lib/block_cache/user_info.py
+1
-0
No files found.
common/lib/xmodule/xmodule/modulestore/__init__.py
View file @
569edd21
...
@@ -905,7 +905,6 @@ class ModuleStoreRead(ModuleStoreAssetBase):
...
@@ -905,7 +905,6 @@ class ModuleStoreRead(ModuleStoreAssetBase):
"""
"""
pass
pass
@abstractmethod
@abstractmethod
def
make_course_usage_key
(
self
,
course_key
):
def
make_course_usage_key
(
self
,
course_key
):
"""
"""
...
...
lms/djangoapps/course_api/blocks/forms.py
View file @
569edd21
...
@@ -15,6 +15,7 @@ from opaque_keys.edx.keys import UsageKey
...
@@ -15,6 +15,7 @@ from opaque_keys.edx.keys import UsageKey
from
transformers.student_view
import
StudentViewTransformer
from
transformers.student_view
import
StudentViewTransformer
from
transformers.block_counts
import
BlockCountsTransformer
from
transformers.block_counts
import
BlockCountsTransformer
class
ListField
(
Field
):
class
ListField
(
Field
):
"""
"""
Field for a list of strings
Field for a list of strings
...
@@ -59,7 +60,6 @@ class BlockListGetForm(Form):
...
@@ -59,7 +60,6 @@ class BlockListGetForm(Form):
return
usage_key
return
usage_key
def
clean
(
self
):
def
clean
(
self
):
cleaned_data
=
super
(
BlockListGetForm
,
self
)
.
clean
()
cleaned_data
=
super
(
BlockListGetForm
,
self
)
.
clean
()
...
...
lms/djangoapps/course_blocks/transformers/tests/test_helpers.py
View file @
569edd21
lms/djangoapps/course_blocks/transformers/tests/test_split_test.py
View file @
569edd21
...
@@ -156,7 +156,7 @@ class SplitTestTransformerTestCase(CourseStructureTestCase):
...
@@ -156,7 +156,7 @@ class SplitTestTransformerTestCase(CourseStructureTestCase):
{
{
'#type'
:
'vertical'
,
'#type'
:
'vertical'
,
'#ref'
:
'L'
,
'#ref'
:
'L'
,
'#children'
:
[{
'#type'
:
'vertical'
,
'#ref'
:
'P'
,},
],
'#children'
:
[{
'#type'
:
'vertical'
,
'#ref'
:
'P'
}
],
},
},
],
],
},
},
...
...
lms/djangoapps/course_blocks/transformers/tests/test_user_partitions.py
View file @
569edd21
...
@@ -173,7 +173,7 @@ class UserPartitionTransformerTestCase(CourseStructureTestCase):
...
@@ -173,7 +173,7 @@ class UserPartitionTransformerTestCase(CourseStructureTestCase):
Test when user is assigned to group in user partition.
Test when user is assigned to group in user partition.
"""
"""
if
group_id
:
if
group_id
:
add_user_to_cohort
(
self
.
cohorts
[
group_id
-
1
],
self
.
user
.
username
)
add_user_to_cohort
(
self
.
cohorts
[
group_id
-
1
],
self
.
user
.
username
)
trans_block_structure
=
get_course_blocks
(
trans_block_structure
=
get_course_blocks
(
self
.
user
,
self
.
user
,
...
...
lms/djangoapps/course_blocks/transformers/user_partitions.py
View file @
569edd21
...
@@ -6,6 +6,7 @@ from openedx.core.lib.block_cache.transformer import BlockStructureTransformer
...
@@ -6,6 +6,7 @@ from openedx.core.lib.block_cache.transformer import BlockStructureTransformer
from
.split_test
import
SplitTestTransformer
from
.split_test
import
SplitTestTransformer
from
.utils
import
get_field_on_block
from
.utils
import
get_field_on_block
class
MergedGroupAccess
(
object
):
class
MergedGroupAccess
(
object
):
"""
"""
...
...
...
...
openedx/core/lib/block_cache/graph_traversals.py
View file @
569edd21
...
@@ -129,7 +129,7 @@ def traverse_post_order(start_node, get_children, get_result=None, predicate=Non
...
@@ -129,7 +129,7 @@ def traverse_post_order(start_node, get_children, get_result=None, predicate=Non
while
stack
:
while
stack
:
# peek at the next item in the stack
# peek at the next item in the stack
current_stack_item
=
stack
[
len
(
stack
)
-
1
]
current_stack_item
=
stack
[
len
(
stack
)
-
1
]
# verify the block wasn't already visited and the block satisfies the predicate
# verify the block wasn't already visited and the block satisfies the predicate
if
current_stack_item
.
block
in
visited
or
not
predicate
(
current_stack_item
.
block
):
if
current_stack_item
.
block
in
visited
or
not
predicate
(
current_stack_item
.
block
):
...
...
openedx/core/lib/block_cache/tests/test_block_cache.py
View file @
569edd21
openedx/core/lib/block_cache/tests/test_block_structure.py
View file @
569edd21
...
@@ -68,7 +68,7 @@ class TestBlockStructureData(TestCase, ChildrenMapTestMixin):
...
@@ -68,7 +68,7 @@ class TestBlockStructureData(TestCase, ChildrenMapTestMixin):
transformers_info
=
[
transformers_info
=
[
TransformerInfo
(
TransformerInfo
(
transformer
=
MockTransformer
(),
transformer
=
MockTransformer
(),
structure_wide_data
=
[(
"t1.global1"
,
"t1.g.val1"
),
(
"t1.global2"
,
"t1.g.val2"
)
,
],
structure_wide_data
=
[(
"t1.global1"
,
"t1.g.val1"
),
(
"t1.global2"
,
"t1.g.val2"
)],
block_specific_data
=
{
block_specific_data
=
{
"B1"
:
[(
"t1.key1"
,
"t1.b1.val1"
),
(
"t1.key2"
,
"t1.b1.val2"
)],
"B1"
:
[(
"t1.key1"
,
"t1.b1.val1"
),
(
"t1.key2"
,
"t1.b1.val2"
)],
"B2"
:
[(
"t1.key1"
,
"t1.b2.val1"
),
(
"t1.key2"
,
"t1.b2.val2"
)],
"B2"
:
[(
"t1.key1"
,
"t1.b2.val1"
),
(
"t1.key2"
,
"t1.b2.val2"
)],
...
@@ -78,7 +78,7 @@ class TestBlockStructureData(TestCase, ChildrenMapTestMixin):
...
@@ -78,7 +78,7 @@ class TestBlockStructureData(TestCase, ChildrenMapTestMixin):
),
),
TransformerInfo
(
TransformerInfo
(
transformer
=
MockTransformer
(),
transformer
=
MockTransformer
(),
structure_wide_data
=
[(
"t2.global1"
,
"t2.g.val1"
),
(
"t2.global2"
,
"t2.g.val2"
)
,
],
structure_wide_data
=
[(
"t2.global1"
,
"t2.g.val1"
),
(
"t2.global2"
,
"t2.g.val2"
)],
block_specific_data
=
{
block_specific_data
=
{
"B1"
:
[(
"t2.key1"
,
"t2.b1.val1"
),
(
"t2.key2"
,
"t2.b1.val2"
)],
"B1"
:
[(
"t2.key1"
,
"t2.b1.val1"
),
(
"t2.key2"
,
"t2.b1.val2"
)],
"B2"
:
[(
"t2.key1"
,
"t2.b2.val1"
),
(
"t2.key2"
,
"t2.b2.val2"
)],
"B2"
:
[(
"t2.key1"
,
"t2.b2.val1"
),
(
"t2.key2"
,
"t2.b2.val2"
)],
...
...
openedx/core/lib/block_cache/tests/test_graph_traversals.py
View file @
569edd21
openedx/core/lib/block_cache/tests/test_utils.py
View file @
569edd21
...
@@ -74,6 +74,7 @@ class MockUserInfo(object):
...
@@ -74,6 +74,7 @@ class MockUserInfo(object):
class
MockTransformer
(
BlockStructureTransformer
):
class
MockTransformer
(
BlockStructureTransformer
):
VERSION
=
1
VERSION
=
1
def
transform
(
self
,
user_info
,
block_structure
):
def
transform
(
self
,
user_info
,
block_structure
):
pass
pass
...
...
openedx/core/lib/block_cache/user_info.py
View file @
569edd21
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
"""
"""
from
abc
import
abstractproperty
from
abc
import
abstractproperty
class
UserInfo
(
object
):
class
UserInfo
(
object
):
"""
"""
...
...
...
...
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