mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-26 15:23:50 +01:00
2018-12-06 Fred Gleason <fredg@paravelsystems.com>
* Removed support for the 'priv' argument in callbacks in PyPAD scripts.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user