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
f136edb4
Commit
f136edb4
authored
Jul 08, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tracking in idashboard should only log json-serializable objects
parent
06529054
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lms/djangoapps/instructor/views.py
+5
-5
No files found.
lms/djangoapps/instructor/views.py
View file @
f136edb4
...
...
@@ -374,7 +374,7 @@ def instructor_dashboard(request, course_id):
msg
+=
message
if
student
is
not
None
:
progress_url
=
reverse
(
'student_progress'
,
kwargs
=
{
'course_id'
:
course_id
,
'student_id'
:
student
.
id
})
track
.
views
.
server_track
(
request
,
"get-student-progress-page"
,
{
"student"
:
st
udent
,
"instructor"
:
request
.
user
,
"course"
:
course_id
},
page
=
"idashboard"
)
track
.
views
.
server_track
(
request
,
"get-student-progress-page"
,
{
"student"
:
st
r
(
student
),
"instructor"
:
str
(
request
.
user
)
,
"course"
:
course_id
},
page
=
"idashboard"
)
msg
+=
"<a href='{0}' target='_blank'> Progress page for username: {1} with email address: {2}</a>."
.
format
(
progress_url
,
student
.
username
,
student
.
email
)
#----------------------------------------
...
...
@@ -472,7 +472,7 @@ def instructor_dashboard(request, course_id):
msg
+=
'<font color="green">Added {0} to instructor group = {1}</font>'
.
format
(
user
,
group
.
name
)
log
.
debug
(
'staffgrp={0}'
.
format
(
group
.
name
))
user
.
groups
.
add
(
group
)
track
.
views
.
server_track
(
request
,
"add-instructor"
,
{
"instructor"
:
user
},
page
=
"idashboard"
)
track
.
views
.
server_track
(
request
,
"add-instructor"
,
{
"instructor"
:
str
(
user
)
},
page
=
"idashboard"
)
elif
action
==
'Remove course staff'
:
uname
=
request
.
POST
[
'staffuser'
]
...
...
@@ -491,7 +491,7 @@ def instructor_dashboard(request, course_id):
msg
+=
'<font color="green">Removed {0} from instructor group = {1}</font>'
.
format
(
user
,
group
.
name
)
log
.
debug
(
'instructorgrp={0}'
.
format
(
group
.
name
))
user
.
groups
.
remove
(
group
)
track
.
views
.
server_track
(
request
,
"remove-instructor"
,
{
"instructor"
:
user
},
page
=
"idashboard"
)
track
.
views
.
server_track
(
request
,
"remove-instructor"
,
{
"instructor"
:
str
(
user
)
},
page
=
"idashboard"
)
#----------------------------------------
# DataDump
...
...
@@ -658,7 +658,7 @@ def instructor_dashboard(request, course_id):
problem
=
request
.
POST
[
'Problem'
]
nmsg
,
plots
=
psychoanalyze
.
generate_plots_for_problem
(
problem
)
msg
+=
nmsg
track
.
views
.
server_track
(
request
,
"psychometrics-histogram-generation"
,
{
"problem"
:
problem
},
page
=
"idashboard"
)
track
.
views
.
server_track
(
request
,
"psychometrics-histogram-generation"
,
{
"problem"
:
str
(
problem
)
},
page
=
"idashboard"
)
if
idash_mode
==
'Psychometrics'
:
problems
=
psychoanalyze
.
problems_with_psychometric_data
(
course_id
)
...
...
@@ -911,7 +911,7 @@ def _add_or_remove_user_group(request, username_or_email, group, group_title, ev
else
:
user
.
groups
.
remove
(
group
)
event
=
"add"
if
do_add
else
"remove"
track
.
views
.
server_track
(
request
,
"add-or-remove-user-group"
,
{
"event_name"
:
event_name
,
"user"
:
user
,
"event"
:
event
},
page
=
"idashboard"
)
track
.
views
.
server_track
(
request
,
"add-or-remove-user-group"
,
{
"event_name"
:
event_name
,
"user"
:
str
(
user
)
,
"event"
:
event
},
page
=
"idashboard"
)
return
msg
...
...
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