eventdispatch 0.1.19__py3-none-any.whl → 0.1.20__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
eventdispatch/aux1.py CHANGED
@@ -126,7 +126,7 @@ class CommonEvent(Event):
126
126
  tokens = args[0]
127
127
  # ed.log("TOKENS! {}".format(tokens))
128
128
  if len(tokens) < 1:
129
- raise Exception("not enough tokens", len(tokens))
129
+ raise Exception("BlackboardQueueCVED: not enough tokens", len(tokens))
130
130
 
131
131
  return (ed.reserve_event_id(), blackboard), tuple(tokens)
132
132
 
@@ -144,7 +144,7 @@ class BlackboardQueueCVED(EventDispatch):
144
144
  pass
145
145
 
146
146
  def post_cb(self, blackboard):
147
- self.log("post_cb!!! {}".format(len(blackboard[self.queue_name])))
147
+ self.log("BlackboardQueueCVED: post_cb!!! {}".format(len(blackboard[self.queue_name])))
148
148
 
149
149
  def register_blackboard_assets(self, blackboard, name):
150
150
  self.name = name
@@ -211,7 +211,7 @@ class BlackboardQueueCVED(EventDispatch):
211
211
 
212
212
  # could be woken from shutdown procedure
213
213
  if len(blackboard[self.queue_name]) == 0:
214
- self.log("woken from shutdown")
214
+ self.log("BlackboardQueueCVED: woken from shutdown")
215
215
  break
216
216
 
217
217
  # for now, expose this so other types can override it
@@ -241,7 +241,7 @@ class BlackboardQueueCVED(EventDispatch):
241
241
  *dispatch_args)
242
242
  except Exception as e:
243
243
  self.log(self.ed_id
244
- + " failed dispatch %s, exception %s" % (
244
+ + " BlackboardQueueCVED: failed dispatch %s, exception %s" % (
245
245
  str(serialized_class_args), str(e)))
246
246
  ########################################################
247
247
 
@@ -251,7 +251,7 @@ class BlackboardQueueCVED(EventDispatch):
251
251
  if empty_cv_name is not None:
252
252
  if len(blackboard[self.queue_name]) == 0 and\
253
253
  empty_cv_name in blackboard:
254
- self.log("notifying " + empty_cv_name)
254
+ self.log("BlackboardQueueCVED: notifying " + empty_cv_name)
255
255
  blackboard[empty_cv_name].acquire()
256
256
  blackboard[empty_cv_name].notify_all()
257
257
  blackboard[empty_cv_name].release()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eventdispatch
3
- Version: 0.1.19
3
+ Version: 0.1.20
4
4
  Summary: Event Dispatch: discrete time synchronization
5
5
  Home-page: http://github.com/cyan-at/eventdispatch
6
6
  Author: Charlie Yan
@@ -0,0 +1,10 @@
1
+ eventdispatch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ eventdispatch/aux1.py,sha256=pImLomr3y3a4YKDWtxVRwZEd2pCqjBA_LaNOTZhDbyM,8284
3
+ eventdispatch/core.py,sha256=Pk0FUcQBCF2Bpq4-gfIc6fN8dxbXrgZV1Wjv8jx7O7E,6978
4
+ eventdispatch/example1.py,sha256=9ktrmVJNJ7WC4ugArXOXyKuSNqbu2qFYIrEeaO_AynY,9165
5
+ eventdispatch-0.1.20.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
6
+ eventdispatch-0.1.20.dist-info/METADATA,sha256=uCtVK80p1PatTpdd7aFrfp1zJh9IRgff0t8A1QPATI8,14266
7
+ eventdispatch-0.1.20.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
8
+ eventdispatch-0.1.20.dist-info/entry_points.txt,sha256=52gXPj1zjMPWj460qrTJ6RBn3XZKFoqgNdI4iDwYOGw,71
9
+ eventdispatch-0.1.20.dist-info/top_level.txt,sha256=EFnhw7vsL0B6wdGcB7YXLOUR-2QlTLFhAF8gwp43z-U,14
10
+ eventdispatch-0.1.20.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- eventdispatch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- eventdispatch/aux1.py,sha256=5Kicx582h5zuZrzlea1bboTP4GOrV3GMJeKnTPN2suc,8179
3
- eventdispatch/core.py,sha256=Pk0FUcQBCF2Bpq4-gfIc6fN8dxbXrgZV1Wjv8jx7O7E,6978
4
- eventdispatch/example1.py,sha256=9ktrmVJNJ7WC4ugArXOXyKuSNqbu2qFYIrEeaO_AynY,9165
5
- eventdispatch-0.1.19.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
6
- eventdispatch-0.1.19.dist-info/METADATA,sha256=7tIHj7jBDmUVxL_TNIyjFVtsVeL-dWSGkO4YDAePWsY,14266
7
- eventdispatch-0.1.19.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
8
- eventdispatch-0.1.19.dist-info/entry_points.txt,sha256=52gXPj1zjMPWj460qrTJ6RBn3XZKFoqgNdI4iDwYOGw,71
9
- eventdispatch-0.1.19.dist-info/top_level.txt,sha256=EFnhw7vsL0B6wdGcB7YXLOUR-2QlTLFhAF8gwp43z-U,14
10
- eventdispatch-0.1.19.dist-info/RECORD,,