Hey Chris, no that wasn't the issue in this case but you're right, I
tried and it does make var_name into varName...

Thanks for the answer.

On Oct 19, 5:12 pm, Chris Searle <[email protected]> wrote:
> Hmm. Similar discussion 
> tohttp://groups.google.com/group/google-wave-api/browse_thread/thread/4...
>
> I've currently tried
>
> gadget = document.Gadget(gadgetUrl)
> doc.InsertElement(pos, gadget)
> delta = {'key', val}
> doc.GadgetSubmitDelta(gadget, delta)
>
> gadget = document.Gadget(gadgetUrl)
> delta = {'key', val}
> doc.GadgetSubmitDelta(gadget, delta)
> doc.InsertElement(pos, gadget)
>
> gadget = document.Gadget(gadgetUrl)
> doc.InsertElement(pos, gadget)
> delta = {'key', val}
> gadget.submitDelta(delta)
>
> gadget = document.Gadget(gadgetUrl)
> delta = {'key', val}
> gadget.submitDelta(delta)
> doc.InsertElement(pos, gadget)
>
> So - that's calling SubmitDelta on the gadget and using
> doc.GadgetSubmitDelta - both before and after inserting it in the
> blip.
>
> I see in the robot log the following json (amongst the rest of it):
>
>          {
>             "blipId":"b+Kp80wU6wE",
>             "index":116,
>             "waveletId":"wavesandbox.com!conv+root",
>             "javaClass":"com.google.wave.api.impl.OperationImpl",
>             "waveId":"wavesandbox.com!w+Rn8AWHfwA",
>             "property":{
>                "type":"GADGET",
>                "properties":{
>                   "javaClass":"java.util.HashMap",
>                   "map":{
>                      "url":"http://cdsscratch.appspot.com/
> flickrey.xml",
>                      "flickrImageId":"4019022326"
>                   }
>                },
>                "java_class":"com.google.wave.api.Gadget"
>             },
>             "type":"DOCUMENT_ELEMENT_INSERT"
>          },
>          {
>             "blipId":"b+Kp80wU6wE",
>             "index":-1,
>             "waveletId":"wavesandbox.com!conv+root",
>             "javaClass":"com.google.wave.api.impl.OperationImpl",
>             "waveId":"wavesandbox.com!w+Rn8AWHfwA",
>             "property":{
>                "type":"GADGET",
>                "properties":{
>                   "javaClass":"java.util.HashMap",
>                   "map":{
>                      "url":"http://cdsscratch.appspot.com/
> flickrey.xml",
>                      "flickrImageId":"4019022326"
>                   }
>                },
>                "java_class":"com.google.wave.api.Gadget"
>             },
>             "type":"DOCUMENT_ELEMENT_MODIFY_ATTRS"
>          },
>
> Now - this is interesting. The wave state variable I'm trying to set
> here is flickr_image_id (and I read flickr_image_id inside the
> gadget). I can see in the map its getting set to flickrImageId. The
> delta itself looks like:
>
> delta = { 'flickr_image_id' : pm.match.group(2) }
>
> In a different place I see user_id replaced with userId
>
> Could this be the issue?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to