gntp reference fixed (for Prowl Notifications); refs #37

This commit is contained in:
Chris Caron 2019-01-29 14:01:40 -05:00
parent 60bfd0224e
commit e54e909b29

View File

@ -21,7 +21,7 @@ __all__ = [
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class GrowlNotifier(gntp.notifier.GrowlNotifier): class GrowlNotifier(notifier.GrowlNotifier):
""" """
ConfigParser enhanced GrowlNotifier object ConfigParser enhanced GrowlNotifier object
@ -36,7 +36,7 @@ class GrowlNotifier(gntp.notifier.GrowlNotifier):
port = ? port = ?
""" """
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
config = gntp.shim.RawConfigParser({ config = shim.RawConfigParser({
'hostname': kwargs.get('hostname', 'localhost'), 'hostname': kwargs.get('hostname', 'localhost'),
'password': kwargs.get('password'), 'password': kwargs.get('password'),
'port': kwargs.get('port', 23053), 'port': kwargs.get('port', 23053),
@ -67,7 +67,7 @@ def mini(description, **kwargs):
:param string description: Notification message :param string description: Notification message
""" """
kwargs['notifierFactory'] = GrowlNotifier kwargs['notifierFactory'] = GrowlNotifier
gntp.notifier.mini(description, **kwargs) notifier.mini(description, **kwargs)
if __name__ == '__main__': if __name__ == '__main__':