Hi, I have a robot that extracts any image (jpg) urls from the blip and creates my gadget and submits a delta with all the urls. It works if the blip did not have the gadget, but it does not update the imgurls state if the gadget is already part of the blip. The robot logging shows a 'CONSTRUCTING gadget' msg with the right new urls, and an 'Outgoing: ...' as well, but my gadget state callback does not get called with the new value. Even when I reload the wave I will get the old urls.
This is the code: def OnBlipSubmitted(properties, context): blip = context.GetBlipById(properties['blipId']) doc = blip.GetDocument() imgurlre = re.compile('(http://\S*.jpg)') m = imgurlre.findall(doc.GetText()) if m: mygadget = blip.GetGadgetByUrl(GADGET_URL) if not mygadget: mygadget = document.Gadget(GADGET_URL) doc.AppendElement(mygadget) doc.GadgetSubmitDelta(mygadget, {'imgurls':'\n'.join(m)}) Am I doing something wrong or is this a bug? Thanks, Gijsbert --~--~---------~--~----~------------~-------~--~----~ 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-api@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 -~----------~----~----~----~------~----~------~--~---