[Google Wave APIs] Re: How to handle lots of Gadget States with Robot (Python)
ah... nevermind I guess. I can just write the key=value pairs in a json string and submit it as one state, can't I? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Google Wave APIs] How to handle lots of Gadget States with Robot (Python)
OK, I have a robot that interacts with a gadget. The Gadget contains many form elements, and the values are submitted with submitDelta() How can the robot process those states (for example post all the values to a URL) without having to read each state with gadget.get ('key') blip = context.GetBlipById(properties['blipId']) gadget = blip.GetGadgetByUrl(GADGET_URL) form1 = gadget.get('formelement1') form2 = gadget.get('formelement2') form3 = gadget.get('formelement3') form4 = gadget.get('formelement4') form5 = gadget.get('formelement5') form6 = gadget.get('formelement6') ... Hope you know what I mean (..and my problem isn't something trivial i have to feel ashamed of :-)) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Google Wave APIs] Re: "import json" error with python-written robot
try this: from django.utils import simplejson as json had the same problem On Nov 3, 9:19 pm, Niall wrote: > Hi, > > I am currently writing a google wave robot for kicks, and I get the > following error: > > : No module named json > Traceback (most recent call last): > File "/base/data/home/apps/myWaveRobot/1.337487432489076904/ > myWaveRobot.py", line 14, in > import myWaveRobotModule > File "/base/data/home/apps/myWaveRobot/1.337487432489076904/ > myWaveRobotModule.py", line 3, in > import json > > And line three of myWaveRobotModule.py is -- > > import json > > I did some searching and I can't figure out why I'm getting that error > and couldn't see anything that seemed to match my problems. The error > is printed like 19 times in the appenging main logs, but I don't know > if that's important. > > Can anyone tell me why json doesn't work? > > Thanks. Let me know if you need any more information. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---