Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
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
OpenEdx
django-pipeline
Commits
440f9adb
Commit
440f9adb
authored
Dec 16, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove external urls support
parent
f86026f7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
30 deletions
+0
-30
pipeline/packager.py
+0
-3
pipeline/templatetags/compressed.py
+0
-3
tests/tests/packager.py
+0
-24
No files found.
pipeline/packager.py
View file @
440f9adb
...
...
@@ -78,9 +78,6 @@ class Packager(object):
return
packages
for
name
in
config
:
packages
[
name
]
=
{}
if
'external_urls'
in
config
[
name
]:
packages
[
name
][
'externals'
]
=
config
[
name
][
'external_urls'
]
continue
paths
=
[]
for
pattern
in
config
[
name
][
'source_filenames'
]:
for
path
in
glob
(
pattern
):
...
...
pipeline/templatetags/compressed.py
View file @
440f9adb
...
...
@@ -66,9 +66,6 @@ class CompressedJSNode(template.Node):
except
PackageNotFound
:
return
''
# fail silently, do not return anything if an invalid group is specified
if
'externals'
in
package
:
return
'
\n
'
.
join
([
self
.
render_external
(
package
,
url
)
for
url
in
package
[
'externals'
]])
if
settings
.
PIPELINE
:
return
self
.
render_js
(
package
,
package
[
"output"
])
else
:
...
...
tests/tests/packager.py
View file @
440f9adb
...
...
@@ -70,29 +70,5 @@ class PackagerTest(TestCase):
self
.
assertEqual
(
individual_url
,
"http://localhost/static/js/application.js"
)
def
test_external_urls
(
self
):
packager
=
Packager
()
packages
=
packager
.
create_packages
({
'jquery'
:
{
'external_urls'
:
(
'//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'
,)
},
'application'
:
{
'source_filenames'
:
(
'js/application.js'
,),
'output_filename'
:
'application.r?.js'
}
})
self
.
assertEqual
(
packages
,
{
'jquery'
:
{
'externals'
:
(
'//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'
,)
},
'application'
:
{
'context'
:
{},
'manifest'
:
True
,
'output'
:
'application.r?.js'
,
'paths'
:
[
'js/application.js'
],
'templates'
:
[]
}
})
def
tearDown
(
self
):
settings
.
PIPELINE_URL
=
self
.
old_pipeline_url
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