projects
/
python-purple
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Change struct Callbacks
[python-purple]
/
callbackbase.pyx
1
import purple
2
import ecore
3
4
class CallBackBase:
5
def __init__(self, dict_cbs):
6
self.cbs = dict_cbs
7
8
def add_callback(self, name, func):
9
self.cbs[name] = func
10
11
def call_callback(self, name):
12
self.cbs[name] = (data, user)