The kitchensinky code has an example of doing just that:
http://google-wave-resources.googlecode.com/svn/trunk/samples/extensions/robots/python/kitchensinky/kitchensinky.py <http://google-wave-resources.googlecode.com/svn/trunk/samples/extensions/robots/python/kitchensinky/kitchensinky.py> Thanks, -joe On Fri, Apr 9, 2010 at 9:55 AM, Willy Lai <[email protected]> wrote: > Hi there, > > I'm currently having problems with the Python API. > My problem boils down to following code: > > wave = self.robot.new_wave(domain='googlewave.com', > participants=['...']) > gadget = element.Gadget('...') > gadget.waveid = wave.wave_id > wave.root_blip.append(gadget) > # Update the state of the gadget > self.robot.submit(wave) > > What I'm trying to do is to have the robot inserting a gadget (which > works fine) and then update the gadget. > The gadget is written using GWT and the robot is in Python. > The robot should pass values to the gadget by updating its state with > some key-value pairs and therefore trigger the StateUpdateEvent in the > gadget, which then updates itself. > > I read stuff about GadgetSubmitDelta but that has to be called on a > document, the example code says > blip = context.GetBlipById(...) > doc = blip.GetDocument() > doc.GadgetSubmitDelta(...) > but I already have my blip (wave.root_blip) and there's no function > called GetDocument() for blip. > > That seems strange to me.. > I would appreciate any clarification or help :) > > Best, > Will > > -- > 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]<google-wave-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-wave-api?hl=en. > > -- 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.
