2018-12-06 Fred Gleason <fredg@paravelsystems.com>

* Removed support for the 'priv' argument in callbacks in PyPAD
	scripts.
This commit is contained in:
Fred Gleason
2018-12-06 15:54:19 -05:00
parent c80f67cfd0
commit 340f834839
3 changed files with 7 additions and 18 deletions

View File

@@ -152,10 +152,9 @@ class PyPADUpdate(object):
class PyPADReceiver(object):
def __init__(self):
self.__callback=None
self.__priv=None
def __PyPAD_Process(self,pad):
self.__callback(pad,self.__priv)
self.__callback(pad)
def setCallback(self,cb):
"""
@@ -163,13 +162,6 @@ class PyPADReceiver(object):
"""
self.__callback=cb
def setPrivateObject(self,obj):
"""
Set the 'private' object. This object will be passed to the
callback in its second argument.
"""
self.priv=obj
def start(self,hostname):
"""
Connect to a Rivendell system and begin processing PAD events.