[Google Wave APIs] Re: Creating a new wave using embed API or robots
There is a similar post here http://groups.google.com/group/google-wave-api/browse_thread/thread/670ced3f13765e4d/bf40e3dffec097ca?lnk=gstq=create+new+wave+from+robot+python#bf40e3dffec097ca That has a code example on how to do this. The caveat that I've found is that while this is possible, it requires you to have an existing wave ID to begin with (i.e. the context parameter of the NewWave API call). Hopefully they'll change this later so that a wave can be created without having the context of an existing wave. On Oct 21, 2:29 am, yariv.snapir yariv.sna...@gmail.com wrote: I have been trying to figure out a way to automatically (through the code) generate anewwave. I would like to be able tocreateanewwave(conversation) for each object stored in my application to enable collaboration involving this object (example: opening awave conversation that would track human changes for anewmail order). The Tutorial states that: Currently, we do not allow you tocreateanewwavefrom scratch in this environment. My question: will this be possible at any time in the future? I also thought I might implement arobotthat will automaticallycreatenewwaves. The robots overview states: Arobotcan perform operations on any wavelet in which it is a participant, and can alsocreatenewwavelets and waves. However, I could not find any API in therobotAPI reference that enables creation ofnewWaves (only wavelets). Anyone have an idea? Thanks --~--~-~--~~~---~--~~ 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: HowTo: Make a robot create a new Wave (Python)
Thank you! This is exactly what I was trying to do, and your code work great. A follow up question though. Do you know if it's possible to do this without having a beginning wave to begin with? That is, is it possible to create the 'context' variable just from the API? I've read a few other posts about this and I haven't found anyone saying it was possible. Again, thanks for the sample code. On Oct 10, 1:25 am, Daniel Faust soundlin...@gmail.com wrote: Oh, right, and you need to add __ from waveapi import robot_abstract __ to your file On Oct 10, 9:24 am, Daniel Faust soundlin...@gmail.com wrote: Hi, I myself had trouble with this issue and saw that it was asked for several times. I found the solution and want to share it, so here it goes: def OnBlipSubmitted(properties, context): doc = context.GetBlipById(properties['blipId']).GetDocument() text = doc.GetText() if text.find('/createWave') == 0: _newWave = robot_abstract.NewWave(context, context.GetRootWavelet().GetParticipants()) _newWave.SetTitle(NewWave'sTitle) _newRootBlipId = _newWave.GetRootBlipId() _newRootBlip = context.GetBlipById(_newRootBlipId) _newDocument = _newRootBlip.GetDocument() _newDocument.AppendText(This is an additional Text) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---