Added keyring_backend to the settings tuple.
This commit is contained in:
parent
9324f06a3c
commit
7fa5c10787
@ -1,6 +1,4 @@
|
||||
import os
|
||||
|
||||
__author__ = 'facetoe'
|
||||
from keyring.backend import KeyringBackend
|
||||
|
||||
|
||||
|
@ -29,6 +29,7 @@ class Github(IntervalModule):
|
||||
|
||||
settings = (
|
||||
('format', 'format string'),
|
||||
('keyring_backend', 'alternative keyring backend for retrieving credentials'),
|
||||
('unread_marker', 'sets the string that the "unread" formatter shows when there are pending notifications'),
|
||||
("username", ""),
|
||||
("password", ""),
|
||||
|
@ -16,6 +16,7 @@ class IMAP(Backend):
|
||||
settings = (
|
||||
"host", "port",
|
||||
"username", "password",
|
||||
('keyring_backend', 'alternative keyring backend for retrieving credentials'),
|
||||
"ssl",
|
||||
"mailbox",
|
||||
)
|
||||
|
@ -20,6 +20,7 @@ class ModsDeChecker(IntervalModule):
|
||||
settings = (
|
||||
("format",
|
||||
"""Use {unread} as the formatter for number of unread posts"""),
|
||||
('keyring_backend', 'alternative keyring backend for retrieving credentials'),
|
||||
("offset", """subtract number of posts before output"""),
|
||||
"color", "username", "password"
|
||||
)
|
||||
|
@ -29,7 +29,8 @@ class pyLoad(IntervalModule):
|
||||
"format",
|
||||
"captcha_true", "captcha_false",
|
||||
"download_true", "download_false",
|
||||
"username", "password"
|
||||
"username", "password",
|
||||
('keyring_backend', 'alternative keyring backend for retrieving credentials'),
|
||||
)
|
||||
required = ("username", "password")
|
||||
keyring_backend = None
|
||||
|
@ -35,6 +35,7 @@ class Reddit(IntervalModule):
|
||||
("format", "Format string used for output."),
|
||||
("username", "Reddit username."),
|
||||
("password", "Reddit password."),
|
||||
('keyring_backend', 'alternative keyring backend for retrieving credentials'),
|
||||
("subreddit", "Subreddit to monitor. Uses frontpage if unspecified."),
|
||||
("sort_by", "'hot', 'new', 'rising', 'controversial', or 'top'."),
|
||||
("color", "Standard color."),
|
||||
|
@ -5,7 +5,6 @@ from bs4 import BeautifulSoup
|
||||
|
||||
|
||||
class WhosOnLocation():
|
||||
|
||||
email = None
|
||||
password = None
|
||||
session = None
|
||||
@ -68,6 +67,7 @@ class WOL(IntervalModule):
|
||||
password = None
|
||||
|
||||
settings = (
|
||||
('keyring_backend', 'alternative keyring backend for retrieving credentials'),
|
||||
'email',
|
||||
'password'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user