Example #1
0
 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)
Example #2
0
 def __init__(self, tag):
   self.tag = tag
   self.script = deepcopy(SCRIPTS.get(tag, {}))
Example #3
0
 def __init__(self, tag):
   self.tag = tag
   self.script = SCRIPTS.get(tag, {})
Example #4
0
 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)