Added keyring_backend to the settings tuple.

This commit is contained in:
facetoe 2015-02-13 19:38:58 +08:00
parent 9324f06a3c
commit 7fa5c10787
7 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,4 @@
import os
__author__ = 'facetoe'
from keyring.backend import KeyringBackend

View File

@ -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", ""),

View File

@ -16,6 +16,7 @@ class IMAP(Backend):
settings = (
"host", "port",
"username", "password",
('keyring_backend', 'alternative keyring backend for retrieving credentials'),
"ssl",
"mailbox",
)

View File

@ -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"
)

View File

@ -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

View File

@ -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."),

View File

@ -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'
)