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
39406c97
Commit
39406c97
authored
Sep 16, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to specifiy several group as syncompress args
parent
1b724ab2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pipeline/management/commands/synccompress.py
+4
-4
No files found.
pipeline/management/commands/synccompress.py
View file @
39406c97
...
@@ -23,9 +23,9 @@ class Command(BaseCommand):
...
@@ -23,9 +23,9 @@ class Command(BaseCommand):
)
)
)
)
help
=
'Updates and compresses CSS and JS on-demand'
help
=
'Updates and compresses CSS and JS on-demand'
args
=
'<group>'
args
=
'<group
s
>'
def
handle
(
self
,
group
=
None
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
from
pipeline.packager
import
Packager
from
pipeline.packager
import
Packager
packager
=
Packager
(
packager
=
Packager
(
force
=
options
.
get
(
'force'
,
False
),
force
=
options
.
get
(
'force'
,
False
),
...
@@ -36,7 +36,7 @@ class Command(BaseCommand):
...
@@ -36,7 +36,7 @@ class Command(BaseCommand):
bust_cache
=
options
.
get
(
'bust_cache'
,
True
)
bust_cache
=
options
.
get
(
'bust_cache'
,
True
)
for
package_name
in
packager
.
packages
[
'css'
]:
for
package_name
in
packager
.
packages
[
'css'
]:
if
group
and
package_name
!=
group
:
if
args
and
package_name
not
in
args
:
continue
continue
package
=
packager
.
package_for
(
'css'
,
package_name
)
package
=
packager
.
package_for
(
'css'
,
package_name
)
if
packager
.
verbose
or
packager
.
force
:
if
packager
.
verbose
or
packager
.
force
:
...
@@ -47,7 +47,7 @@ class Command(BaseCommand):
...
@@ -47,7 +47,7 @@ class Command(BaseCommand):
packager
.
pack_stylesheets
(
package
,
sync
=
sync
,
bust_cache
=
bust_cache
)
packager
.
pack_stylesheets
(
package
,
sync
=
sync
,
bust_cache
=
bust_cache
)
for
package_name
in
packager
.
packages
[
'js'
]:
for
package_name
in
packager
.
packages
[
'js'
]:
if
group
and
package_name
!=
group
:
if
args
and
package_name
not
in
args
:
continue
continue
package
=
packager
.
package_for
(
'js'
,
package_name
)
package
=
packager
.
package_for
(
'js'
,
package_name
)
if
packager
.
verbose
or
packager
.
force
:
if
packager
.
verbose
or
packager
.
force
:
...
...
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