Hi Bart,

Did you try to change the waveapi package yourself?

That is, change the line:

handler(event.properties, context)

with the line:

handler(event.properties, context, event.type)

and your callbacks prototypes to something like this:

def onSelfAdded(properties, context, event_type):

Hope this helps,
Eyal.

On Jan 16, 7:42 pm, Bart Thate <[email protected]> wrote:
> Hello hardworking Googlers,
>
> I wonder if this following code snippet from waveapi/robot_abstract.py
> is going to be fixed in the upcoming API ?
>
>   def HandleEvent(self, event, context):
>     """Calls all of the handlers associated with an event."""
>     for handler in self._handlers.get(event.type, []):
>       # TODO(jacobly): pass the event in to the handlers directly
>       # instead of passing the properties dictionary.
>       logging.debug("EVENT: %s" % dir(event))
>       logging.debug("EVENT DATA: %s" % str(event))
>       handler(event.properties, context)
>
> I need the event.type for my callbacks that i implement in my robot.
> Dispatching is based on type, so it would be handy to have the type
> available.
>
> Is the new api going to be a new package (like waveapi2) or is the
> current waveapi namespace going to be reused ?
>
> thnx,
>
> Bart
-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" 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/google-wave-api?hl=en.


Reply via email to