Example #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))
Example #2
0
 def __init__(self, filter):
     """_Filter class initialization"""
     self.data = filter
     self.stub = Cuebot.getStub('filter')
Example #3
0
 def __init__(self, matcher=None):
     self.data = matcher
     self.stub = Cuebot.getStub('matcher')
Example #4
0
 def __init__(self, action=None):
     self.data = action
     self.stub = Cuebot.getStub('action')
Example #5
0
 def __init__(self, job=None):
     self.data = job
     self.stub = Cuebot.getStub('job')
     self.__frameStateTotals = {}
Example #6
0
 def __init__(self, limit=None):
     self.data = limit
     self.stub = Cuebot.getStub('limit')
Example #7
0
 def __init__(self, limit=None):
     """Limit class initialization"""
     self.data = limit
     self.stub = Cuebot.getStub('limit')
Example #8
0
 def __init__(self, host):
     """Host class initialization"""
     self.data = host
     self.__id = host.id
     self.stub = Cuebot.getStub('host')
Example #9
0
 def __init__(self, group):
     self.data = group
     self.stub = Cuebot.getStub('group')
Example #10
0
 def __init__(self, job=None):
     """_Job class initialization"""
     self.data = job
     self.stub = Cuebot.getStub('job')
Example #11
0
 def __init__(self, frame=None):
     self.data = frame
     self.stub = Cuebot.getStub('frame')
Example #12
0
 def __init__(self, frame=None):
     """_Frame class initialization"""
     self.data = frame
     self.stub = Cuebot.getStub('frame')
Example #13
0
 def __init__(self, host=None):
     self.data = host
     self.__id = host.id
     self.stub = Cuebot.getStub('host')
Example #14
0
 def __init__(self, filter=None):
     self.data = filter
     self.stub = Cuebot.getStub('filter')
Example #15
0
 def __init__(self, owner=None):
     """Host class initialization"""
     self.data = owner
     self.stub = Cuebot.getStub('owner')
Example #16
0
 def __init__(self, owner=None):
     self.data = owner
     self.stub = Cuebot.getStub('owner')