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