222
|
1 # keep the database of submasters, and mix up the current client
|
|
2 # requests into dmx levels for dmxserver
|
|
3
|
|
4 class SubServe:
|
|
5 """call the server with these messages"""
|
|
6
|
|
7 def allSubs(self):
|
|
8 """list of all the known subs"""
|
|
9
|
|
10 def output(self,levels):
|
|
11 """pass a dict of {sub : level} mappings"""
|
|
12
|
|
13
|
|
14 class SubClient:
|
|
15 """each client can receive these messages"""
|
|
16
|
|
17 def subAdded(self,newsub):
|
|
18 """sub was just added to the db"""
|
|
19
|
|
20 def subRemove(self,pastsub):
|
|
21 """this sub is about to be removed from the db"""
|
|
22
|
|
23 def subChange(self,sub):
|
|
24 """this is a new version of an existing sub"""
|