OSDN Git Service
(root)
/
ninix-aya
/
master.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement Install Events
[ninix-aya/master.git]
/
lib
/
ninix
/
communicate.py
diff --git
a/lib/ninix/communicate.py
b/lib/ninix/communicate.py
index
7f6692c
..
8800613
100644
(file)
--- a/
lib/ninix/communicate.py
+++ b/
lib/ninix/communicate.py
@@
-32,6
+32,10
@@
class Communicate:
return [chr(1).join(value) for value in self.__ghosts.values() \
if value[0] != name]
return [chr(1).join(value) for value in self.__ghosts.values() \
if value[0] != name]
+ def notify_all(self, event, references):
+ for sakura in self.__ghosts.keys():
+ sakura.enqueue_event(event, *references)
+
ON_OTHER_EVENT = {
'OnBoot': 'OnOtherGhostBooted',
'OnFirstBoot': 'OnOtherGhostBooted',
ON_OTHER_EVENT = {
'OnBoot': 'OnOtherGhostBooted',
'OnFirstBoot': 'OnOtherGhostBooted',