fedora-infra / mirrormanager2

Rewrite of the MirrorManager application in Flask and SQLAlchemy
https://mirrormanager.fedoraproject.org
GNU General Public License v2.0
65 stars 49 forks source link

Optionally exclude certain protocols from MM #144

Closed adrianreber closed 8 years ago

adrianreber commented 8 years ago

This change adds the possibility to exclude certain protocols to be entered in MirrorManager. The default value in the configuration file of

MM_PROTOCOL_REGEX = '^(?!ftp)(.*)$'

will prohibit that FTP based URLs are entered at all.

The goal (as discussed in #99) is to remove FTP URLs from Fedora's MirrorManager setup.

Signed-off-by: Adrian Reber adrian@lisas.de

pypingou commented 8 years ago

Nice, good idea to use the form validator for this, :+1:

adrianreber commented 8 years ago

I was just copying what I saw you did for the country code validation. Thanks for the validator introduction :smile: