Exemple #1
0
 def _proxy(entity, cls=None):
     if cls is None:
         raise ValueError("cls must be specified")
     stub = Cuebot.getStub(cls.lower())
     getMethod = getattr(stub, "Get{}".format(cls))
     proto = Cuebot.PROTO_MAP.get(cls.lower())
     if proto:
         requestor = getattr(proto, "{cls}Get{cls}Request".format(cls=cls))
         return getMethod(requestor(id=entity))
     else:
         raise AttributeError('Could not find a proto for {}'.format(cls))
Exemple #2
0
 def __init__(self, filter):
     """_Filter class initialization"""
     self.data = filter
     self.stub = Cuebot.getStub('filter')
Exemple #3
0
 def __init__(self, matcher=None):
     self.data = matcher
     self.stub = Cuebot.getStub('matcher')
Exemple #4
0
 def __init__(self, action=None):
     self.data = action
     self.stub = Cuebot.getStub('action')
Exemple #5
0
 def __init__(self, job=None):
     self.data = job
     self.stub = Cuebot.getStub('job')
     self.__frameStateTotals = {}
Exemple #6
0
 def __init__(self, limit=None):
     self.data = limit
     self.stub = Cuebot.getStub('limit')
Exemple #7
0
 def __init__(self, limit=None):
     """Limit class initialization"""
     self.data = limit
     self.stub = Cuebot.getStub('limit')
Exemple #8
0
 def __init__(self, host):
     """Host class initialization"""
     self.data = host
     self.__id = host.id
     self.stub = Cuebot.getStub('host')
Exemple #9
0
 def __init__(self, group):
     self.data = group
     self.stub = Cuebot.getStub('group')
Exemple #10
0
 def __init__(self, job=None):
     """_Job class initialization"""
     self.data = job
     self.stub = Cuebot.getStub('job')
Exemple #11
0
 def __init__(self, frame=None):
     self.data = frame
     self.stub = Cuebot.getStub('frame')
Exemple #12
0
 def __init__(self, frame=None):
     """_Frame class initialization"""
     self.data = frame
     self.stub = Cuebot.getStub('frame')
Exemple #13
0
 def __init__(self, host=None):
     self.data = host
     self.__id = host.id
     self.stub = Cuebot.getStub('host')
Exemple #14
0
 def __init__(self, filter=None):
     self.data = filter
     self.stub = Cuebot.getStub('filter')
Exemple #15
0
 def __init__(self, owner=None):
     """Host class initialization"""
     self.data = owner
     self.stub = Cuebot.getStub('owner')
Exemple #16
0
 def __init__(self, owner=None):
     self.data = owner
     self.stub = Cuebot.getStub('owner')