control 'url' backends parameter with a regexp (closes #712)
This commit is contained in:
parent
06eb33ec59
commit
68bb3cb274
3 changed files with 4 additions and 4 deletions
|
|
@ -36,8 +36,8 @@ class MediawikiBackend(BaseBackend, ICapContent):
|
|||
VERSION = '0.a'
|
||||
LICENSE = 'AGPLv3+'
|
||||
DESCRIPTION = 'Mediawiki wiki software application'
|
||||
CONFIG = BackendConfig(Value('url', label='URL of the Mediawiki website', default='http://en.wikipedia.org/'),
|
||||
Value('apiurl', label='URL of the Mediawiki website\'s API', default='http://en.wikipedia.org/w/api.php'),
|
||||
CONFIG = BackendConfig(Value('url', label='URL of the Mediawiki website', default='http://en.wikipedia.org/', regexp='https?://.*'),
|
||||
Value('apiurl', label='URL of the Mediawiki website\'s API', default='http://en.wikipedia.org/w/api.php', regexp='https?://.*'),
|
||||
Value('username', label='Login', default=''),
|
||||
ValueBackendPassword('password', label='Password', default=''))
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class NewsfeedBackend(BaseBackend, ICapMessages):
|
|||
VERSION = '0.a'
|
||||
DESCRIPTION = "Loads RSS and Atom feeds from any website"
|
||||
LICENSE = "AGPLv3+"
|
||||
CONFIG = BackendConfig(Value('url', label="Atom/RSS feed's url"))
|
||||
CONFIG = BackendConfig(Value('url', label="Atom/RSS feed's url", regexp='https?://.*'))
|
||||
STORAGE = {'seen': []}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class RedmineBackend(BaseBackend, ICapContent, ICapBugTracker, ICapCollection):
|
|||
VERSION = '0.a'
|
||||
DESCRIPTION = 'The Redmine project management web application'
|
||||
LICENSE = 'AGPLv3+'
|
||||
CONFIG = BackendConfig(Value('url', label='URL of the Redmine website'),
|
||||
CONFIG = BackendConfig(Value('url', label='URL of the Redmine website', regexp=r'https?://.*'),
|
||||
Value('username', label='Login'),
|
||||
ValueBackendPassword('password', label='Password'))
|
||||
BROWSER = RedmineBrowser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue