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
0bed1964
Commit
0bed1964
authored
Jan 02, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove filename and giturl references
parent
4040f974
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
28 deletions
+0
-28
common/djangoapps/xmodule_modifiers.py
+0
-16
common/lib/xmodule/xmodule/xml_module.py
+0
-4
lms/templates/courseware/xqa_interface.html
+0
-2
lms/templates/staff_problem_info.html
+0
-4
lms/xmodule_namespace.py
+0
-2
No files found.
common/djangoapps/xmodule_modifiers.py
View file @
0bed1964
...
...
@@ -106,20 +106,6 @@ def add_histogram(get_html, module, user):
histogram
=
grade_histogram
(
module_id
)
render_histogram
=
len
(
histogram
)
>
0
# TODO (ichuang): Remove after fall 2012 LMS migration done
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_LMS_MIGRATION'
):
[
filepath
,
filename
]
=
module
.
lms
.
filename
osfs
=
module
.
system
.
filestore
if
filename
is
not
None
and
osfs
.
exists
(
filename
):
# if original, unmangled filename exists then use it (github
# doesn't like symlinks)
filepath
=
filename
data_dir
=
osfs
.
root_path
.
rsplit
(
'/'
)[
-
1
]
edit_link
=
"
%
s/
%
s/tree/master/
%
s"
%
(
module
.
lms
.
giturl
,
data_dir
,
filepath
)
else
:
edit_link
=
False
# Need to define all the variables that are about to be used
data_dir
=
""
source_file
=
module
.
lms
.
source_file
# source used to generate the problem XML, eg latex or word
# useful to indicate to staff if problem has been released or not
...
...
@@ -135,11 +121,9 @@ def add_histogram(get_html, module, user):
'location'
:
module
.
location
,
'xqa_key'
:
module
.
lms
.
xqa_key
,
'source_file'
:
source_file
,
'source_url'
:
'
%
s/
%
s/tree/master/
%
s'
%
(
module
.
lms
.
giturl
,
data_dir
,
source_file
),
'category'
:
str
(
module
.
__class__
.
__name__
),
# Template uses element_id in js function names, so can't allow dashes
'element_id'
:
module
.
location
.
html_id
()
.
replace
(
'-'
,
'_'
),
'edit_link'
:
edit_link
,
'user'
:
user
,
'xqa_server'
:
settings
.
MITX_FEATURES
.
get
(
'USE_XQA_SERVER'
,
'http://xqa:server@content-qa.mitx.mit.edu/xqa'
),
'histogram'
:
json
.
dumps
(
histogram
),
...
...
common/lib/xmodule/xmodule/xml_module.py
View file @
0bed1964
...
...
@@ -230,10 +230,6 @@ class XmlDescriptor(XModuleDescriptor):
if
definition_metadata
:
definition
[
'definition_metadata'
]
=
definition_metadata
# TODO (ichuang): remove this after migration
# for Fall 2012 LMS migration: keep filename (and unmangled filename)
definition
[
'filename'
]
=
[
filepath
,
filename
]
return
definition
,
children
@classmethod
...
...
lms/templates/courseware/xqa_interface.html
View file @
0bed1964
...
...
@@ -21,8 +21,6 @@ function sendlog(element_id, edit_link, staff_context){
entry
:
$
(
'#'
+
element_id
+
'_xqa_entry'
).
val
()
};
if
(
edit_link
)
xqaLog
[
"giturl"
]
=
edit_link
;
$
.
ajax
({
url
:
'${xqa_server}/log'
,
type
:
'GET'
,
...
...
lms/templates/staff_problem_info.html
View file @
0bed1964
...
...
@@ -42,10 +42,6 @@ ${module_content}
<div
class=
"staff_info"
style=
"display:block"
>
is_released = ${is_released}
location = ${location | h}
github =
<a
href=
"${edit_link}"
>
${edit_link | h}
</a>
%if source_file:
source_url =
<a
href=
"${source_url}"
>
${source_file | h}
</a>
%endif
<table>
<tr><th>
Module Fields
</th></tr>
%for name, field in fields:
...
...
lms/xmodule_namespace.py
View file @
0bed1964
...
...
@@ -34,9 +34,7 @@ class LmsNamespace(Namespace):
)
start
=
Date
(
help
=
"Start time when this module is visible"
,
scope
=
Scope
.
settings
)
due
=
String
(
help
=
"Date that this problem is due by"
,
scope
=
Scope
.
settings
,
default
=
''
)
filename
=
List
(
help
=
"DO NOT USE"
,
scope
=
Scope
.
content
,
default
=
[
''
,
None
])
source_file
=
String
(
help
=
"DO NOT USE"
,
scope
=
Scope
.
settings
)
giturl
=
String
(
help
=
"DO NOT USE"
,
scope
=
Scope
.
settings
,
default
=
'https://github.com/MITx'
)
xqa_key
=
String
(
help
=
"DO NOT USE"
,
scope
=
Scope
.
settings
)
ispublic
=
Boolean
(
help
=
"Whether this course is open to the public, or only to admins"
,
scope
=
Scope
.
settings
)
graceperiod
=
Timedelta
(
help
=
"Amount of time after the due date that submissions will be accepted"
,
scope
=
Scope
.
settings
)
...
...
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