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
bdd701d2
Commit
bdd701d2
authored
Dec 04, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10826 from edx/feanil/one_down
Remove This awful code
parents
e0ef89ed
356a1759
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
lms/envs/common.py
+0
-19
No files found.
lms/envs/common.py
View file @
bdd701d2
...
@@ -1605,25 +1605,6 @@ PIPELINE_JS = {
...
@@ -1605,25 +1605,6 @@ PIPELINE_JS = {
}
}
}
}
# Compile all coffee files in course data directories if they are out of date.
# TODO: Remove this once we move data into Mongo. This is only temporary while
# course data directories are still in use.
if
os
.
path
.
isdir
(
DATA_DIR
):
for
course_dir
in
os
.
listdir
(
DATA_DIR
):
js_dir
=
DATA_DIR
/
course_dir
/
"js"
if
not
os
.
path
.
isdir
(
js_dir
):
continue
for
filename
in
os
.
listdir
(
js_dir
):
if
filename
.
endswith
(
'coffee'
):
new_filename
=
os
.
path
.
splitext
(
filename
)[
0
]
+
".js"
if
os
.
path
.
exists
(
js_dir
/
new_filename
):
coffee_timestamp
=
os
.
stat
(
js_dir
/
filename
)
.
st_mtime
js_timestamp
=
os
.
stat
(
js_dir
/
new_filename
)
.
st_mtime
if
coffee_timestamp
<=
js_timestamp
:
continue
os
.
system
(
"rm
%
s"
%
(
js_dir
/
new_filename
))
os
.
system
(
"coffee -c
%
s"
%
(
js_dir
/
filename
))
STATICFILES_IGNORE_PATTERNS
=
(
STATICFILES_IGNORE_PATTERNS
=
(
"*.py"
,
"*.py"
,
...
...
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