Guy Bolton King
unread,Jun 18, 2009, 4:12:24 AM6/18/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Growl Discuss
Hi,
Sorry to raise this again: I've already sent this patch in for 1.1.4,
and I note the problem persists in 1.1.5: am I calling GrowlNotifier
incorrectly, or is this a bug that the patch fixes?
Here's my original post from 15th April:
It's possible I'm calling GrowlNotifier() the wrong way, however,
this:
from Growl import GrowlNotifier
growl = GrowlNotifier(applicationName='redmine-to-omnifocus',
notifications=['changed', 'completed'],
hostname='localhost',
password='')
growl.register()
...fails at the growl.register() call with the following stacktrace:
[...]
File "Growl.py", line 102, in encodeRegistration
struct.error: required argument is not an integer
The attached patch appears to fix things.
Regards,
Guy.
---snip---
--- Growl.py.orig 2009-04-15 10:07:01.000000000 +0100
+++ Growl.py 2009-04-15 10:07:05.000000000 +0100
@@ -99,6 +99,8 @@
data += struct.pack("!H", len(encoded))
data += encoded
for i in defaultNotifications:
+ if type(i) != int:
+ i = notifications.index(i)
data += struct.pack("B", i)
return self.encodePassword(data)