|
|
|
@ -454,17 +454,17 @@ class globalSettingsRequestForm(Form):
|
|
|
|
|
# datastore.data['settings']['application']..
|
|
|
|
|
class globalSettingsApplicationForm(commonSettingsForm):
|
|
|
|
|
|
|
|
|
|
api_access_token_enabled = BooleanField('API access token security check enabled', default=True, validators=[validators.Optional()])
|
|
|
|
|
base_url = StringField('Base URL', validators=[validators.Optional()])
|
|
|
|
|
global_subtractive_selectors = StringListField('Remove elements', [ValidateCSSJSONXPATHInput(allow_xpath=False, allow_json=False)])
|
|
|
|
|
empty_pages_are_a_change = BooleanField('Treat empty pages as a change?', default=False)
|
|
|
|
|
fetch_backend = RadioField('Fetch Method', default="html_requests", choices=content_fetcher.available_fetchers(), validators=[ValidateContentFetcherIsReady()])
|
|
|
|
|
global_ignore_text = StringListField('Ignore Text', [ValidateListRegex()])
|
|
|
|
|
global_subtractive_selectors = StringListField('Remove elements', [ValidateCSSJSONXPATHInput(allow_xpath=False, allow_json=False)])
|
|
|
|
|
ignore_whitespace = BooleanField('Ignore whitespace')
|
|
|
|
|
password = SaltyPasswordField()
|
|
|
|
|
removepassword_button = SubmitField('Remove password', render_kw={"class": "pure-button pure-button-primary"})
|
|
|
|
|
empty_pages_are_a_change = BooleanField('Treat empty pages as a change?', default=False)
|
|
|
|
|
render_anchor_tag_content = BooleanField('Render anchor tag content', default=False)
|
|
|
|
|
fetch_backend = RadioField('Fetch Method', default="html_requests", choices=content_fetcher.available_fetchers(), validators=[ValidateContentFetcherIsReady()])
|
|
|
|
|
api_access_token_enabled = BooleanField('API access token security check enabled', default=True, validators=[validators.Optional()])
|
|
|
|
|
password = SaltyPasswordField()
|
|
|
|
|
|
|
|
|
|
shared_diff_access = BooleanField('Allow access to view diff page when password is enabled', default=False, validators=[validators.Optional()])
|
|
|
|
|
filter_failure_notification_threshold_attempts = IntegerField('Number of times the filter can be missing before sending a notification',
|
|
|
|
|
render_kw={"style": "width: 5em;"},
|
|
|
|
|
validators=[validators.NumberRange(min=0,
|
|
|
|
|