add a regexp on gazelle parameter 'protocol'

This commit is contained in:
Romain Bignon 2010-06-21 23:00:02 +02:00
commit 6936a6fe63

View file

@ -37,7 +37,7 @@ class GazelleBackend(BaseBackend, ICapTorrent):
CONFIG = {'username': BaseBackend.ConfigField(description='Username on website'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
'protocol': BaseBackend.ConfigField(description='Protocol to use ("http" or "https")'),
'protocol': BaseBackend.ConfigField(description='Protocol to use ("http" or "https")', regexp='^(http|https)$'),
'domain': BaseBackend.ConfigField(description='Domain (example "ssl.what.cd")'),
}
BROWSER = GazelleBrowser