ability to add arguments to features_nb.register callback

This commit is contained in:
Yann Leboulanger 2010-01-13 11:09:33 +01:00
parent 8e74c4e360
commit 7548a44c09
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ def _ReceivedRegInfo(con, resp, agent):
df[i.getName()] = i.getData()
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
@ -88,7 +88,7 @@ def register(disp, host, info, cb):
info=info.asDict()
for i in info.keys():
iq.setTag('query').setTagData(i,info[i])
disp.SendAndCallForResponse(iq, cb)
disp.SendAndCallForResponse(iq, cb, args)
def unregister(disp, host, cb):
"""