Skip to content
Snippets Groups Projects
Commit e249808dc6cc authored by Fabien Amarger's avatar Fabien Amarger
Browse files

feat: Store file into S3Storage

parent b893a44aee69
No related branches found
No related tags found
1 merge request!16Log import_data to S3 storage
......@@ -17,6 +17,7 @@
"cubicweb-api": ">= 0.14.0,< 0.15.0",
"cubicweb-file": ">= 4.1.0, < 5.0.0",
"cubicweb-rq": None,
"cubicweb-s3storage": None,
"requests": None,
"pyshacl": None,
"Jinja2": None,
......
......@@ -16,3 +16,15 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""cubicweb-rodolf specific hooks and operations"""
from cubicweb.server.hook import Hook
from cubicweb_s3storage.storages import S3Storage
class S3StorageStartupHook(Hook):
__regid__ = "rodolf.server-startup-hook"
events = ("server_startup", "server_maintenance")
def __call__(self):
storage = S3Storage("rodolf")
self.repo.system_source.set_storage("File", "data", storage)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment