You can use the datastore to store the association between the
waveid and the [command] that goes with it, that way you can
use that information later when you fetch the wavelet to modify.

Also note that if you fetch a wavelet and are use proxy_for, you
need to add the robot manually into the wavelet. See:

   http://code.google.com/apis/wave/extensions/robots/operations.html#Proxying

   Thanks,
   -joe

--
Joe Gregorio
Developer Relations, Google Wave


On Sun, May 9, 2010 at 8:45 PM, Brian <bnenn...@gmail.com> wrote:
> I have an extension that installs commands to create new waves and
> insert different gadgets inside them. I'm using the method of having
> the extension add my robot to the new waves with addresses of the form
> myrobot+[comma...@appspot.com, so that the robot can tell which gadget
> to add to the new wave. This has been working great, but now I'm
> running into a problem having the robot examine the contents of the
> waves that it's created. When I call robot.fetch_wavelet on a wave
> that was created using an alternate robot address, I get an exception
> of the form "RPC Error500: internalError: myro...@appspot.com is not a
> participant of wave id: [WaveId:googlewave.com!w+W1...".
>
> The fetch_wavelet call succeeds if I manually remove "myrobot
> +command1" from the wave it created and add the robot back with its
> default "myrobot" address, but it looks like it's not possible to do
> that programmatically (http://wave-api-faq.appspot.com/
> #removeparticipant). I might be able to add a second instance of the
> robot with the default name to the created wave, but that seems ugly
> because there would be two robot icons, and I'd have to make sure that
> only one of the robots responds to wave events. Is there a better way
> to do this?
>
> Thanks,
>
> Brian
>
> --
> 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-...@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.
>
>

-- 
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-...@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.

Reply via email to