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
b0336957
Unverified
Commit
b0336957
authored
Nov 16, 2017
by
David Ormsbee
Committed by
GitHub
Nov 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16477 from edx/ormsbee/consolidate_theme_js
Remove collection of JS bundles for themes.
parents
a4095e49
255dc792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
9 deletions
+1
-9
openedx/core/djangoapps/theming/storage.py
+1
-9
No files found.
openedx/core/djangoapps/theming/storage.py
View file @
b0336957
...
@@ -251,10 +251,9 @@ class ThemePipelineMixin(PipelineMixin):
...
@@ -251,10 +251,9 @@ class ThemePipelineMixin(PipelineMixin):
for
theme
in
themes
:
for
theme
in
themes
:
css_packages
=
self
.
get_themed_packages
(
theme
.
theme_dir_name
,
settings
.
PIPELINE_CSS
)
css_packages
=
self
.
get_themed_packages
(
theme
.
theme_dir_name
,
settings
.
PIPELINE_CSS
)
js_packages
=
self
.
get_themed_packages
(
theme
.
theme_dir_name
,
settings
.
PIPELINE_JS
)
from
pipeline.packager
import
Packager
from
pipeline.packager
import
Packager
packager
=
Packager
(
storage
=
self
,
css_packages
=
css_packages
,
js_packages
=
js_packages
)
packager
=
Packager
(
storage
=
self
,
css_packages
=
css_packages
)
for
package_name
in
packager
.
packages
[
'css'
]:
for
package_name
in
packager
.
packages
[
'css'
]:
package
=
packager
.
package_for
(
'css'
,
package_name
)
package
=
packager
.
package_for
(
'css'
,
package_name
)
output_file
=
package
.
output_filename
output_file
=
package
.
output_filename
...
@@ -262,13 +261,6 @@ class ThemePipelineMixin(PipelineMixin):
...
@@ -262,13 +261,6 @@ class ThemePipelineMixin(PipelineMixin):
packager
.
pack_stylesheets
(
package
)
packager
.
pack_stylesheets
(
package
)
paths
[
output_file
]
=
(
self
,
output_file
)
paths
[
output_file
]
=
(
self
,
output_file
)
yield
output_file
,
output_file
,
True
yield
output_file
,
output_file
,
True
for
package_name
in
packager
.
packages
[
'js'
]:
package
=
packager
.
package_for
(
'js'
,
package_name
)
output_file
=
package
.
output_filename
if
self
.
packing
:
packager
.
pack_javascripts
(
package
)
paths
[
output_file
]
=
(
self
,
output_file
)
yield
output_file
,
output_file
,
True
super_class
=
super
(
ThemePipelineMixin
,
self
)
super_class
=
super
(
ThemePipelineMixin
,
self
)
if
hasattr
(
super_class
,
'post_process'
):
if
hasattr
(
super_class
,
'post_process'
):
...
...
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