You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.
Currently pyshop defaults to storing packages locally on disk. This is not ideal if your server can be killed at random points (eg on any particular cloud service or with a new deployment)
The lines that currently enforce this behaviour are:
# policy: don't overwrite files that already exist in the repo
raiseexc.HTTPConflict(
"Uploading version ({}) would overwrite existing file"
.format(params['version']))
log.warning('File %s exists but new upload self.request, deleting',
filepath)
os.unlink(filepath)
size=0
withopen(filepath, 'wb') asoutput_file:
input_file.seek(0)
whileTrue:
data=input_file.read(2<<16)
ifnotdata:
break
size+=len(data)
output_file.write(data)
I would be great to have the storage mechanism as a configurable option rather than be forced to use local disk. I would suggest using this package (https://pypi.python.org/pypi/pyramid_storage/0.1.2) to abstract the storage mechanism to be configurable & extensible.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently pyshop defaults to storing packages locally on disk. This is not ideal if your server can be killed at random points (eg on any particular cloud service or with a new deployment)
The lines that currently enforce this behaviour are:
pyshop/pyshop/views/simple.py
Lines 111 to 136 in b60cb1b
I would be great to have the storage mechanism as a configurable option rather than be forced to use local disk. I would suggest using this package (https://pypi.python.org/pypi/pyramid_storage/0.1.2) to abstract the storage mechanism to be configurable & extensible.
The text was updated successfully, but these errors were encountered: