dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Python: The deletion of Stete from Robot to Gadget not to function.(Rev23) #705

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
memory = {}
memory[key] = None
gadget.update_element(memory)

It doesn't change because it is not included in JSON of Outgoing.
update_element() starts renewing only Key that exists in Map.
Therefore, State cannot be deleted from Robot.

Original issue reported on code.google.com by Jaken.Jarvis on 28 Mar 2010 at 1:11

GoogleCodeExporter commented 9 years ago
I confirmed it by Rev25.
It doesn't actually operate though it seemed that it moved well because null is
included in Outgoing.
When State is confirmed on Gadget side, it remains.
Perhaps, it is not a problem of RobotAPI but it might be a problem on server 
side.

Source code
--------------------------------------------------
logging.debug(u"gadget_set_speak memory: %s" % (memory))
gadget.update_element(memory)
--------------------------------------------------

Logs
--------------------------------------------------
#D 03-31 08:47AM 30.655
gadget_set_speak memory: {u'setting:jaken.jarvis@googlewave.com': 
u'0,1,KeikoJPf,0',
u'speak-20100331154512-933-KeikoJPf': None,
u'speaked:speak-20100331154512-933-KeikoJPf:jaken.jarvis@googlewave.com': None,
u'speaked:speak-20100331154728-366-KeikoJPf:jaken.jarvis@googlewave.com': 
u'speaked',
u'speak-20100331154728-366-KeikoJPf':
u'\n\u3044\u3063\u3066\u3089\u3063\u3057\u3083\u3044\u3002\n ', u'key':
'09c3206f695afffaf3a2e70526d547d6'}

#I 03-31 08:47AM 30.656
Outgoing: [{"params": {"capabilitiesHash": "0xb96eb22"}, "method":
"robot.notifyCapabilitiesHash", "id": "0"}, {"params": {"blipId": "b+1ZAqdtMlB",
"waveletId": "googlewave.com!conv+root", "waveId": "googlewave.com!w+1ZAqdtMlA",
"modifyAction": {"modifyHow": "UPDATE_ELEMENT", "elements": [{"type": "GADGET",
"properties": {"setting:jaken.jarvis@googlewave.com": "0,1,KeikoJPf,0",
"speak-20100331154728-366-KeikoJPf":
"\n\u3044\u3063\u3066\u3089\u3063\u3057\u3083\u3044\u3002\n ",
"speak-20100331154512-933-KeikoJPf": null,
"speaked:speak-20100331154512-933-KeikoJPf:jaken.jarvis@googlewave.com": null, 
"key":
"09c3206f695afffaf3a2e70526d547d6", "url": null,
"speaked:speak-20100331154728-366-KeikoJPf:jaken.jarvis@googlewave.com":
"speaked"}}]}, "modifyQuery": {"restrictions": {"url":
"http://j-speechy.appspot.com/j-speechy.xml"}, "maxRes": 1, "elementMatch":
"GADGET"}}, "method": "document.modify", "id": "op2"}]
--------------------------------------------------
Thanks.

Original comment by Jaken.Jarvis on 31 Mar 2010 at 3:57

GoogleCodeExporter commented 9 years ago
I replicated this. I think you are right that it is a server-side issue. I've 
reported 
it to the team. 

Original comment by pamela.fox on 31 Mar 2010 at 11:38

GoogleCodeExporter commented 9 years ago

Original comment by pamela.fox on 13 Apr 2010 at 12:10

GoogleCodeExporter commented 9 years ago
This should now be fixed on all servers.

Original comment by pamela.fox on 21 Apr 2010 at 6:26