Skip to content

Commit

Permalink
Proxy support for template sync
Browse files Browse the repository at this point in the history
  • Loading branch information
lhellebr committed Nov 6, 2024
1 parent 5d77ac1 commit 47fd4c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions airgun/views/sync_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ class ImportTemplates(View):
negate = Checkbox(name='import.negate')
prefix = TextInput(name='import.prefix')
repo = TextInput(name='import.repo')
http_proxy_policy = Select(name='import.http_proxy_policy')
http_proxy_id = Select(name='import.http_proxy_id')

def fill(self, items):
if 'http_proxy_id' in items:
self.http_proxy_policy.fill(items['http_proxy_policy'])
super().fill(items)

@template.register('Export')
class ExportTemplates(View):
Expand All @@ -53,6 +60,8 @@ class ExportTemplates(View):
metadata_export_mode = Select(name='export.metadata_export_mode')
negate = Checkbox(name='export.negate')
repo = TextInput(name='export.repo')
http_proxy_policy = Select(name='export.http_proxy_policy')
http_proxy_id = Select(name='export.http_proxy_id')


class TemplatesReportView(BaseLoggedInView):
Expand Down

0 comments on commit 47fd4c1

Please sign in to comment.