Hi,

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)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to