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
bdf8db05
Commit
bdf8db05
authored
Oct 20, 2014
by
Omar Al-Ithawi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed UnicodeEncodeError in student`s migrations
parent
5a31005e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
common/djangoapps/student/migrations/0035_access_roles.py
+3
-3
common/djangoapps/student/migrations/0036_access_roles_orgless.py
+3
-3
No files found.
common/djangoapps/student/migrations/0035_access_roles.py
View file @
bdf8db05
...
...
@@ -145,10 +145,10 @@ class Migration(DataMigration):
if
self
.
mongostore
is
not
None
:
course_son
=
bson
.
son
.
SON
([
(
'_id.tag'
,
'i4x'
),
(
'_id.org'
,
re
.
compile
(
r'^{}$'
.
format
(
downcased_ssck
.
org
),
re
.
IGNORECAS
E
)),
(
'_id.course'
,
re
.
compile
(
r'^{}$'
.
format
(
downcased_ssck
.
course
),
re
.
IGNORECAS
E
)),
(
'_id.org'
,
re
.
compile
(
ur'^{}$'
.
format
(
downcased_ssck
.
org
),
re
.
IGNORECASE
|
re
.
UNICOD
E
)),
(
'_id.course'
,
re
.
compile
(
ur'^{}$'
.
format
(
downcased_ssck
.
course
),
re
.
IGNORECASE
|
re
.
UNICOD
E
)),
(
'_id.category'
,
'course'
),
(
'_id.name'
,
re
.
compile
(
r'^{}$'
.
format
(
downcased_ssck
.
run
),
re
.
IGNORECAS
E
)),
(
'_id.name'
,
re
.
compile
(
ur'^{}$'
.
format
(
downcased_ssck
.
run
),
re
.
IGNORECASE
|
re
.
UNICOD
E
)),
])
entry
=
self
.
mongostore
.
collection
.
find_one
(
course_son
)
if
entry
:
...
...
common/djangoapps/student/migrations/0036_access_roles_orgless.py
View file @
bdf8db05
...
...
@@ -112,10 +112,10 @@ class Migration(DataMigration):
if
self
.
mongostore
is
not
None
:
course_son
=
bson
.
son
.
SON
([
(
'_id.tag'
,
'i4x'
),
(
'_id.org'
,
re
.
compile
(
r'^{}$'
.
format
(
downcased_ssck
.
org
),
re
.
IGNORECAS
E
)),
(
'_id.course'
,
re
.
compile
(
r'^{}$'
.
format
(
downcased_ssck
.
course
),
re
.
IGNORECAS
E
)),
(
'_id.org'
,
re
.
compile
(
ur'^{}$'
.
format
(
downcased_ssck
.
org
),
re
.
IGNORECASE
|
re
.
UNICOD
E
)),
(
'_id.course'
,
re
.
compile
(
ur'^{}$'
.
format
(
downcased_ssck
.
course
),
re
.
IGNORECASE
|
re
.
UNICOD
E
)),
(
'_id.category'
,
'course'
),
(
'_id.name'
,
re
.
compile
(
r'^{}$'
.
format
(
downcased_ssck
.
run
),
re
.
IGNORECAS
E
)),
(
'_id.name'
,
re
.
compile
(
ur'^{}$'
.
format
(
downcased_ssck
.
run
),
re
.
IGNORECASE
|
re
.
UNICOD
E
)),
])
entry
=
self
.
mongostore
.
collection
.
find_one
(
course_son
)
if
entry
:
...
...
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