annotate bin/subserver @ 697:6e9b5ed1e863

finesse ui. add some mouse events on the points in a curve Ignore-this: 69ed00763985926b92e776fc14298b45
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 09 Jun 2012 10:28:06 +0000
parents 6a4e99505164
children 33a5a98e9bf1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
222
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
1 # keep the database of submasters, and mix up the current client
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
2 # requests into dmx levels for dmxserver
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
3
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
4 class SubServe:
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
5 """call the server with these messages"""
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
6
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
7 def allSubs(self):
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
8 """list of all the known subs"""
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
9
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
10 def output(self,levels):
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
11 """pass a dict of {sub : level} mappings"""
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
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
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
15
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
16 class SubClient:
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
17 """each client can receive these messages"""
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
18
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
19 def subAdded(self,newsub):
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
20 """sub was just added to the db"""
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
21
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
22 def subRemove(self,pastsub):
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
23 """this sub is about to be removed from the db"""
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
24
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
25 def subChange(self,sub):
bb4d1e9b30c1 outline of new subserver
drewp@bigasterisk.com
parents:
diff changeset
26 """this is a new version of an existing sub"""