Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
ca2049ab
Commit
ca2049ab
authored
11 years ago
by
Julian Arni
Browse files
Options
Downloads
Patches
Plain Diff
Fixes extra 'file' that was leftover locally after import
parent
2c0a08f7
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms/djangoapps/contentstore/views/import_export.py
+2
-2
2 additions, 2 deletions
cms/djangoapps/contentstore/views/import_export.py
with
2 additions
and
2 deletions
cms/djangoapps/contentstore/views/import_export.py
+
2
−
2
View file @
ca2049ab
...
...
@@ -60,7 +60,7 @@ def import_course(request, org, course, name):
`filename` is truncted on creation. Additionally removes dirname on
exit.
"""
open
(
"
file
"
,
"
w
"
).
close
()
open
(
file
name
,
"
w
"
).
close
()
try
:
yield
filename
finally
:
...
...
@@ -90,7 +90,7 @@ def import_course(request, org, course, name):
try
:
matches
=
CONTENT_RE
.
search
(
request
.
META
[
"
HTTP_CONTENT_RANGE
"
])
content_range
=
matches
.
groupdict
()
except
KeyError
:
# Single chunk
except
KeyError
:
# Single chunk
# no Content-Range header, so make one that will work
content_range
=
{
'
start
'
:
0
,
'
stop
'
:
1
,
'
end
'
:
2
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment