ability to add arguments to features_nb.register callback
This commit is contained in:
parent
8e74c4e360
commit
7548a44c09
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ def _ReceivedRegInfo(con, resp, agent):
|
||||||
df[i.getName()] = i.getData()
|
df[i.getName()] = i.getData()
|
||||||
con.Event(NS_REGISTER, REGISTER_DATA_RECEIVED, (agent,df,False,''))
|
con.Event(NS_REGISTER, REGISTER_DATA_RECEIVED, (agent,df,False,''))
|
||||||
|
|
||||||
def register(disp, host, info, cb):
|
def register(disp, host, info, cb, args=None):
|
||||||
"""
|
"""
|
||||||
Perform registration on remote server with provided info
|
Perform registration on remote server with provided info
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ def register(disp, host, info, cb):
|
||||||
info=info.asDict()
|
info=info.asDict()
|
||||||
for i in info.keys():
|
for i in info.keys():
|
||||||
iq.setTag('query').setTagData(i,info[i])
|
iq.setTag('query').setTagData(i,info[i])
|
||||||
disp.SendAndCallForResponse(iq, cb)
|
disp.SendAndCallForResponse(iq, cb, args)
|
||||||
|
|
||||||
def unregister(disp, host, cb):
|
def unregister(disp, host, cb):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue