def get_scripts(account_email=None, ui=False): for tag in sorted(iter(SCRIPTS.keys())): if account_email in SCRIPTS[tag]['script'].get('private', (account_email,)): if not ui or ('from' in SCRIPTS[tag]['script'] and 'to' in SCRIPTS[tag]['script']): yield Script(tag)
def __init__(self, tag): self.tag = tag self.script = deepcopy(SCRIPTS.get(tag, {}))
def __init__(self, tag): self.tag = tag self.script = SCRIPTS.get(tag, {})
def get_scripts(account_email=None): for tag in SCRIPTS.keys(): if account_email in SCRIPTS[tag]['script'].get( 'private', (account_email, )): yield Script(tag)