Is this the only line that needed to be changed? Qurious what was the reason to pass properties instead of event...
On Nov 18, 12:20 pm, hcvst <[email protected]> wrote: > Hi, > > I am not sure whether the current Python client API has already been > updated > but the one I used (downloaded end of Oct) for my bot only passed > context and > properties to the Handler and not the event. > > I changed line 124 in waveapi.robot_abstract. Obviously, you will need > to adjust > your handlers to work with events instead of properties. The #TODO > suggests, that > this will be done in the future anyway. > > 119 - def HandleEvent(self, event, context): > 120 """Calls all of the handlers associated with an event.""" > 121 for handler in self._handlers.get(event.type, []): > 122 # TODO(jacobly): pass the event in to the handlers directly > 123 # instead of passing the properties dictionary. > 124 handler(event.properties, context) > > new 124: handler(event, context) > > Now you can use the attribute event.modifiedBy in your handler. > > -HC > > On Nov 17, 4:16 pm, qMax <[email protected]> wrote: > > > The [email protected] now prints who added it to participants. > > > Well, Public is somewhat built-in feature, not real bot. > > Does it use some completely internal cheats? > > -- 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=.
