mirror of
https://github.com/caronc/apprise.git
synced 2025-01-23 22:39:17 +01:00
gntp reference fixed (for Prowl Notifications); refs #37
This commit is contained in:
parent
60bfd0224e
commit
e54e909b29
@ -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__':
|
||||||
|
Loading…
Reference in New Issue
Block a user