Hello,

I tried using the filters of the Python v2 Robot API with the
GadgetStateChanged event. The code looks like this:

def on_gadget_state_changed(event, wavelet):
# ...
my_robot = robot.Robot(my_robot, profile_url='url')
my_robot.register_handler(events.GadgetStateChanged,
on_gadget_state_changed,
filter="StringThatDoesNotAppearAnywhereInTheGadgetState")
appengine_robot_runner.run(my_robot, debug=True)

I would expect that the handler never gets called because the filter
string can certainly not be found in the wave or any gadget state.
However, the event handler is called every single time the gadget
state changes. What am I doing wrong?

Thanks,
Martin Kreichgauer

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to