I have a robot that adds a gadget to a wave like this...
doc.AppendElement(document.Gadget(GADGET_URL))
... and I want to submit delta right afterwards, like this...
gadget = blip.GetGadgetByUrl(GADGET_URL)
if gadget:
delta = { 'name' : 'joe' }
doc.GadgetSubmitDelta(gadget, delta)
... but gadget in "if gadget" tests false. It makes sense I guess b/c
the blip object in blip.GetGadgetByUrl() represents the blip before I
appended the gadget (i.e. when the BLIP_SUBMITTED event fires)...
right?
Am I making any sense?
What would be the right way to accomplish this (i.e. do the
GadgetSubmitDelta after adding the gadget)?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---