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