예제 #1
0
def get_state(sub_menu):
    """
    :return The state of a plugin
    :rtype bool
    """
    key = "activated"
    states = {TimetableSubMenu.__name__: settings.get_timetable_settings()[key],
              MailSubMenu.__name__: settings.get_email_settings()[key],
              NotificationSubMenu.__name__: settings.get_notification_settings()[key],
              TimeManagerSubMenu.__name__: settings.get_time_manager_settings()[key]}
    return states[sub_menu]
예제 #2
0
__author__ = 'Kristo Koert'

import keyring
from itc_kit.settings import settings

print(
    keyring.get_password("EITC-kit",
                         settings.get_email_settings()["username"]))
예제 #3
0
 def __init__(self):
     threading.Thread.__init__(self)
     self.mail_settings = get_email_settings()
__author__ = 'Kristo Koert'

import keyring
from itc_kit.settings import settings

print(keyring.get_password("EITC-kit", settings.get_email_settings()["username"]))