From 844bc1e7c677908063002b525f7996f0b0ea58f4 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 7 Aug 2024 16:13:50 +0200 Subject: ogcp: Add /action/cache/fetch endpoint Add view to request the download of images into the client's cache. --- ogcp/forms/action_forms.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 82958fb..496be56 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -110,6 +110,14 @@ class ImageRestoreForm(FlaskForm): ('UNICAST-DIRECT', 'UNICAST-DIRECT')]) restore = SubmitField(label=_l('Restore')) +class ImageFetchForm(FlaskForm): + ips = HiddenField() + image = SelectField(label=_l('Image'), choices=[]) + method = SelectField(label=_l('Method'), + choices=[('TIPTORRENT', 'TIPTORRENT'), + ('UNICAST', 'UNICAST')]) + submit = SubmitField(label=_l('Submit')) + class RepoForm(FlaskForm): server = HiddenField() repo_id = HiddenField() -- cgit v1.2.3-18-g5258