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
02d58a7c
Commit
02d58a7c
authored
Sep 03, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display course load error messages on modulestore reload by instructor
parent
b0397ab0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
lms/djangoapps/instructor/views.py
+5
-0
No files found.
lms/djangoapps/instructor/views.py
View file @
02d58a7c
...
@@ -107,6 +107,11 @@ def instructor_dashboard(request, course_id):
...
@@ -107,6 +107,11 @@ def instructor_dashboard(request, course_id):
modulestore
()
.
try_load_course
(
data_dir
)
modulestore
()
.
try_load_course
(
data_dir
)
msg
+=
"<br/><p>Course reloaded from
%
s</p>"
%
data_dir
msg
+=
"<br/><p>Course reloaded from
%
s</p>"
%
data_dir
track
.
views
.
server_track
(
request
,
'reload
%
s'
%
data_dir
,
{},
page
=
'idashboard'
)
track
.
views
.
server_track
(
request
,
'reload
%
s'
%
data_dir
,
{},
page
=
'idashboard'
)
course_errors
=
modulestore
()
.
get_item_errors
(
course
.
location
)
msg
+=
'<ul>'
for
cmsg
,
cerr
in
course_errors
:
msg
+=
"<li>
%
s: <pre>
%
s</pre>"
%
(
cmsg
,
escape
(
cerr
))
msg
+=
'</ul>'
except
Exception
as
err
:
except
Exception
as
err
:
msg
+=
'<br/><p>Error:
%
s</p>'
%
escape
(
err
)
msg
+=
'<br/><p>Error:
%
s</p>'
%
escape
(
err
)
...
...
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