Right, that worked! It makes sense too... (isn't it cool when it does? ha!)
Thanks so much, David. Agustin. On Oct 19, 4:28 pm, David Nesting <[email protected]> wrote: > On Mon, Oct 19, 2009 at 3:26 AM, Agustin Horischnik <[email protected]>wrote: > > > doc.AppendElement(document.Gadget(GADGET_URL)) > > > 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 > > Just looking through the Python API source, it looks as though the > AppendElement method just queues up an operation to modify the document, but > doesn't actually change the local state. It looks like this might work, > though: > > gadget = document.Gadget(GADGET_URL) > doc.AppendElement(gadget) > delta = { 'name' : 'joe' } > doc.GadgetSubmitDelta(gadget, delta) > > David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
