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
424c6c84
Commit
424c6c84
authored
Oct 22, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
force overwrite and close #31
parent
7b4075d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
pipeline/packager.py
+1
-2
pipeline/storage.py
+5
-0
No files found.
pipeline/packager.py
View file @
424c6c84
...
...
@@ -79,8 +79,7 @@ class Packager(object):
return
self
.
compressor
.
compile_templates
(
package
[
'templates'
])
def
save_file
(
self
,
path
,
content
):
storage
.
save
(
path
,
ContentFile
(
content
))
return
path
return
storage
.
save
(
path
,
ContentFile
(
content
))
def
create_packages
(
self
,
config
):
packages
=
{}
...
...
pipeline/storage.py
View file @
424c6c84
...
...
@@ -28,6 +28,11 @@ class PipelineStorage(FileSystemStorage):
def
modified_time
(
self
,
name
):
return
datetime
.
fromtimestamp
(
os
.
path
.
getmtime
(
self
.
path
(
name
)))
def
get_available_name
(
self
,
name
):
if
self
.
exists
(
name
):
self
.
delete
(
name
)
return
name
def
_open
(
self
,
name
,
mode
=
'rb'
):
full_path
=
self
.
path
(
name
)
directory
=
os
.
path
.
dirname
(
full_path
)
...
...
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