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
958597ac
Commit
958597ac
authored
Aug 14, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
was getting unicode errors when exporting CB22x
parent
0350dea2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
cms/djangoapps/contentstore/views/assets.py
+3
-0
common/lib/xmodule/xmodule/video_module.py
+1
-1
No files found.
cms/djangoapps/contentstore/views/assets.py
View file @
958597ac
...
...
@@ -348,6 +348,8 @@ def generate_export_course(request, org, course, name):
try
:
export_to_xml
(
modulestore
(
'direct'
),
contentstore
(),
loc
,
root_dir
,
name
,
modulestore
())
except
SerializationError
,
e
:
logging
.
exception
(
'There was an error exporting course {0}. {1}'
.
format
(
course_module
.
location
,
unicode
(
e
)))
unit
=
None
failed_item
=
None
parent
=
None
...
...
@@ -380,6 +382,7 @@ def generate_export_course(request, org, course, name):
})
})
except
Exception
,
e
:
logging
.
exception
(
'There was an error exporting course {0}. {1}'
.
format
(
course_module
.
location
,
unicode
(
e
)))
return
render_to_response
(
'export.html'
,
{
'context_course'
:
course_module
,
'successful_import_redirect_url'
:
''
,
...
...
common/lib/xmodule/xmodule/video_module.py
View file @
958597ac
...
...
@@ -266,7 +266,7 @@ class VideoDescriptor(VideoFields, TabsEditingDescriptor, EmptyDataRawDescriptor
if
key
in
fields
and
fields
[
key
]
.
default
==
getattr
(
self
,
key
):
continue
if
value
:
xml
.
set
(
key
,
str
(
value
))
xml
.
set
(
key
,
unicode
(
value
))
for
source
in
self
.
html5_sources
:
ele
=
etree
.
Element
(
'source'
)
...
...
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