summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-07 16:13:50 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-09 10:01:23 +0200
commit844bc1e7c677908063002b525f7996f0b0ea58f4 (patch)
tree2e31914f075e51daba1d01149b5e218a6e1ba349 /ogcp/forms/action_forms.py
parentace0c5bb46ee78b0fe6533b5d50a2dd8c04198a4 (diff)
ogcp: Add /action/cache/fetch endpoint
Add view to request the download of images into the client's cache.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py8
1 files changed, 8 insertions, 0 deletions
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()