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
1379ba9c
Commit
1379ba9c
authored
Mar 12, 2013
by
Christina Roberts
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1658 from MITx/fix/zoldak/poll-merged-fix-factory
Update course factory to reflect XBlock changes
parents
c0b6c01f
f9f0bd0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
common/djangoapps/terrain/factories.py
+1
-5
No files found.
common/djangoapps/terrain/factories.py
View file @
1379ba9c
...
...
@@ -84,7 +84,6 @@ class XModuleCourseFactory(Factory):
if
display_name
is
not
None
:
new_course
.
display_name
=
display_name
new_course
.
data_dir
=
uuid4
()
.
hex
new_course
.
lms
.
start
=
gmtime
()
new_course
.
tabs
=
[{
"type"
:
"courseware"
},
{
"type"
:
"course_info"
,
"name"
:
"Course Info"
},
...
...
@@ -140,14 +139,11 @@ class XModuleItemFactory(Factory):
new_item
=
store
.
clone_item
(
template
,
dest_location
)
# TODO: This needs to be deleted when we have proper storage for static content
new_item
.
data_dir
=
parent
.
data_dir
# replace the display name with an optional parameter passed in from the caller
if
display_name
is
not
None
:
new_item
.
display_name
=
display_name
store
.
update_metadata
(
new_item
.
location
.
url
(),
new_item
.
own_metadata
)
store
.
update_metadata
(
new_item
.
location
.
url
(),
own_metadata
(
new_item
)
)
if
new_item
.
location
.
category
not
in
DETACHED_CATEGORIES
:
store
.
update_children
(
parent_location
,
parent
.
children
+
[
new_item
.
location
.
url
()])
...
...
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