dcorking / google-wave-resources

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

Bug: Robot API v2 INPUT field (Event JSON) #673

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code
            input = element.Input('iVcode',
                                  value='Some Value',
                                  label='Any Label')
            blip.append(input)
            button = element.Button('bVcode','Done')
            blip.append(button)

The Outgoing JSON looks good:
"modifyAction": {"modifyHow": "INSERT_AFTER", "elements": [{"type":
"INPUT", "properties": {"defaultValue": "Some Value", "name": "iVcode",
"value": "Some Value", "label": "Any Label"}}]}}

After the Button-Event the Incoming JSON looks like:
{"type":"INPUT","properties":{"name":"iVcode","value":"Some
Value","defaultValue":""}}

and I get the following error:
File
"/base/data/home/apps/robotname/6.340346642724496144/waveapi/element.py",
line 119, in from_props
return Input(name=props['name'], value=props['value'], label=props['label'])
KeyError: 'label'

I think in the incoming event JSON the property 'label' is missing.

Original issue reported on code.google.com by Uwe.Fetzer on 6 Mar 2010 at 3:54

GoogleCodeExporter commented 9 years ago
This was fixed in revision 23 of the client library. See changelog here:
https://wave.google.com/wave/#restored:wave:googlewave.com!w%252BSgYrEnoLE

Original comment by pamela.fox on 11 Mar 2010 at 4:06