Skip to content

Commit

Permalink
Some changes to Growl notifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
tester22 committed Apr 3, 2011
1 parent beb4f85 commit 9808101
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/lib/growl.py
Expand Up @@ -77,6 +77,7 @@ def notify(self, message, title):
# send notification packet
s.sendto(p.payload(), addr)
s.close()
log.info(u"Growl notifications sent.")

def updateLibrary(self):
#For uniformity reasons not removed
Expand All @@ -96,14 +97,15 @@ class GrowlRegistrationPacket:
"""Builds a Growl Network Registration packet.
Defaults to emulating the command-line growlnotify utility."""

def __init__(self, application="NetGrowl", password = None ):
def __init__(self, application="CouchPotato", password = None ):
self.notifications = []
self.defaults = [] # array of indexes into notifications
self.application = application.encode("utf-8")
self.password = password
print password
# end def

def addNotification(self, notification="Command-Line Growl Notification", enabled=True):
def addNotification(self, notification="General Notification", enabled=True):
"""Adds a notification type and sets whether it is enabled on the GUI"""
self.notifications.append(notification)
if enabled:
Expand Down Expand Up @@ -139,8 +141,8 @@ class GrowlNotificationPacket:
"""Builds a Growl Network Notification packet.
Defaults to emulating the command-line growlnotify utility."""

def __init__(self, application="NetGrowl",
notification="Command-Line Growl Notification", title="Title",
def __init__(self, application="CouchPotato",
notification="General Notification", title="Title",
description="Description", priority = 0, sticky = False, password = None ):

self.application = application.encode("utf-8")
Expand Down

0 comments on commit 9808101

Please sign in to comment.