Mercurial > code > home > repos > light9
annotate bin/subserver @ 780:94f85500b995
Add getsub function for expressions
Ignore-this: 6e6adc831107bbf7876bff1e670e34a0
author | drewp@bigasterisk.com |
---|---|
date | Sun, 17 Jun 2012 00:17:10 +0000 |
parents | 6a4e99505164 |
children | 33a5a98e9bf1 |
rev | line source |
---|---|
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 | |
310
6a4e99505164
subserver still in progress
Drew Perttula <drewp@bigasterisk.com>
parents:
222
diff
changeset
|
13 def editsub |
6a4e99505164
subserver still in progress
Drew Perttula <drewp@bigasterisk.com>
parents:
222
diff
changeset
|
14 |
222 | 15 |
16 class SubClient: | |
17 """each client can receive these messages""" | |
18 | |
19 def subAdded(self,newsub): | |
20 """sub was just added to the db""" | |
21 | |
22 def subRemove(self,pastsub): | |
23 """this sub is about to be removed from the db""" | |
24 | |
25 def subChange(self,sub): | |
26 """this is a new version of an existing sub""" |