parent
efb74ae413
commit
54a2c457f0
6 changed files with 62 additions and 20 deletions
|
@ -55,8 +55,6 @@ def list_new(group_id=None):
|
|||
("bca", "Bypass Censorship Analytics"),
|
||||
("bridgelines", "Tor Bridge Lines")
|
||||
]
|
||||
form.container.description = "GitHub Project, GitLab Project or AWS S3 bucket name."
|
||||
form.branch.description = "Ignored for AWS S3."
|
||||
if form.validate_on_submit():
|
||||
list_ = MirrorList()
|
||||
list_.provider = form.provider.data
|
||||
|
@ -64,6 +62,7 @@ def list_new(group_id=None):
|
|||
list_.description = form.description.data
|
||||
list_.container = form.container.data
|
||||
list_.branch = form.branch.data
|
||||
list_.role = form.role.data
|
||||
list_.filename = form.filename.data
|
||||
list_.created = datetime.utcnow()
|
||||
list_.updated = datetime.utcnow()
|
||||
|
@ -85,7 +84,12 @@ class NewMirrorListForm(FlaskForm):
|
|||
provider = SelectField('Provider', validators=[DataRequired()])
|
||||
format = SelectField('Distribution Method', validators=[DataRequired()])
|
||||
description = StringField('Description', validators=[DataRequired()])
|
||||
container = StringField('Container', validators=[DataRequired()])
|
||||
branch = StringField('Branch')
|
||||
container = StringField('Container', validators=[DataRequired()],
|
||||
description="GitHub Project, GitLab Project or AWS S3 bucket name.")
|
||||
branch = StringField('Git Branch/AWS Region', validators=[DataRequired()],
|
||||
description="For GitHub/GitLab, set this to the desired branch name, e.g. main. For AWS S3, "
|
||||
"set this field to the desired region, e.g. us-east-1.")
|
||||
role = StringField('Role ARN',
|
||||
description="(Optional) ARN for IAM role to assume for interaction with the S3 bucket.")
|
||||
filename = StringField('Filename', validators=[DataRequired()])
|
||||
submit = SubmitField('Save Changes')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue