[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-30 Thread fat...@tid.es
Hi: My code works: private void deleteBlips() { Blip blip = wavelet.getRootBlip(); for (Blip child : blip.getChildren()) { try{ child.delete(); } catch

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-30 Thread Stephen George
Thanks very much cmdskp, that's a great help and is working for me! Oddly enough, after being on hiatus for Thanksgiving holiday, my algorithm seems to also work. It's possible that it may have something to do with the new API update on 11/27, even though this doesn't seem to relate to the issue(

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-25 Thread cmdskp
Thanks - okay, I don't see any glaring differences - I've approached this differently in parts which I'll go through in case they have something to do with it. However, I don't know if also missed Austin's reply and mine about updating your capabilities.xml version number? And perhaps even changi

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-25 Thread Stephen George
Thanks cmdskp, I must have missed your response to the other thread, sorry. I'd be happy to swap notes. Here's my traversal approach. Apologies for this long message... package com.googlecode.wave.myrobot; import com.google.wave.api.*; import java.util.logging.Logger; import java.util.Dat

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-25 Thread cmdskp
Good to know it looks like you can combine the context values. Though with WAVELET_SELF_ADDED there would not be a parent - since the root-node is returned with that event - it is the top-most blip and has no parent logically...though I've not checked to see if it's null or points to itself, I wou

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-25 Thread cmdskp
There would not be a parent with WAVELET_SELF_ADDED though - since the root-node is returned with that event - it is the top-most blip and has no parent logically...though I've not checked to see if it's null or points to itself, I would expect null there. I don't know if you've tested my robot cl

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-25 Thread Stephen George
Olreich, I'll start by saying that I haven't had much success with getting both. However, if you take a look at Google's implementation of the private method AbstractRobot.processCapabilities(), it looks like it *should* be possible by splitting the contexts with commas: I believe that is at l

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-24 Thread cmdskp
The root node is returned along with the children in WAVELET_SELF_ADDED and context="children". Here's my capabilities.xml: http://wave.google.com/extensions/robots/1.0";> 1.0 http://cleantxt.appspot.com/ imgs/icon-caution.png" profileurl="http://cleantxt.appspot.com"/> It a

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-24 Thread Olreich
The only remaining question is: Can one specify both parent and child context, and thus get all blip_data with a single event? On Nov 23, 10:53 pm, cmdskp wrote: > @qMax:  As of today, it appears to delete only the blip and its inline > replies (the collapseable blips) - not standard reply child

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-23 Thread cmdskp
@qMax: As of today, it appears to delete only the blip and its inline replies (the collapseable blips) - not standard reply children. @shitu: Last night I was testing deleting of all blips on WAVELET_SELF_ADDED. It worked fine then, I recursively went through the children and all were deleted -

Re: [Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-22 Thread Vikram Dhillon
The visual really helped, I wasn't thinking properly so I apologize for that and thanks for your clarification on the subject. So from what I understand now, how about this: if we can export the whole conversation, to a file or something, then the robot can stri[p off everything besides the root

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-22 Thread qMax
Java reference says: void com.google.wave.api.Blip.delete() Deletes the current blip and all of its descendants. does it work only when applied to event-affected blip ? On 22 ноя, 23:57, Olreich wrote: > Deleting the child of the rootBlip will not delete it's > "children" (the rest of the conver

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-22 Thread Olreich
GetChildren on the root blip will get the first blip. Unfortunately, because the root blip has to be the blip submitted to have that function work, it's limited. In fact, it's even more limited because of the fact that the root blips child's child is null in the current version of the API. (an anno

Re: [Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-22 Thread Vikram Dhillon
One thing that you could do is this: - Make a bot - Count the number of blips - Then you can subtract 1 from it, this will be the root blip - Do a for loop but go in the opposite direction like this (for int i = 0; i < blip.getChildren(); i--) - Here you can enter another command like the

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-22 Thread Olreich
Deleting the child of the rootBlip will not delete it's "children" (the rest of the conversation). This may be a bug. Of course, I'm guessing that his application wants that update to be immediate, so that he can post other data in the blip and then allow people to respond to it. He could lock the

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-21 Thread qMax
In any case, you first need some event to trigger your action. If i recall properly, in event context you can always get root blip of wavelet, and direct children of affected blip. Then you can try following: 1. modify the root blip with dumb data (say, some special annotation at start). 2. catch

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-21 Thread Olreich
The parent/child system in the API is currently shot. I hear that there's a new API going into place sometime to get all the blips in a wave. I don't know the implementation date, but it's in there. On Nov 21, 4:20 am, neolinux wrote: > No solution? > > On 14 Nov, 00:18, neolinux wrote: > > > >

Re: [Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-21 Thread 栾瑞鹏
Yes. No solution. At least true for java api. On Sat, Nov 21, 2009 at 5:20 PM, neolinux wrote: > No solution? > > On 14 Nov, 00:18, neolinux wrote: > > I have the same question. > > > > I need that the wave "resets" at 4:00 am to the original state (only > > the root blip must be there.). > > >

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-21 Thread neolinux
No solution? On 14 Nov, 00:18, neolinux wrote: > I have the same question. > > I need that the wave "resets" at 4:00 am to the original state (only > the root blip must be there.). > > Any help? > > On 28 Ott, 15:44, shitu wrote: > > > > > Hi all.. > > I wants to delete all the blips in the wave

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-11-13 Thread neolinux
I have the same question. I need that the wave "resets" at 4:00 am to the original state (only the root blip must be there.). Any help? On 28 Ott, 15:44, shitu wrote: > Hi all.. > I wants to delete all the blips in the wave except the root blip. > plzz help its urgent!!! -- You received this

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-10-29 Thread shitu
I m using java. Actually what i want is to add blip in the middle of any 2 blips but as an inline blip. On Oct 29, 11:40 am, alexandrojv wrote: > I don't think there is a way to do it yet, you would of had to done > all the replies in inline form, that way deleting the top one would > delete the

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-10-28 Thread alexandrojv
I don't think there is a way to do it yet, you would of had to done all the replies in inline form, that way deleting the top one would delete the rest On Oct 28, 9:44 am, shitu wrote: > Hi all.. > I wants to delete all the blips in the wave except the root blip. > plzz help its urgent!!! --~--~

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-10-28 Thread Henson
Referring to your original post, I can't seem to get a list of all blips. Can someone explain to me why doing: session_blips = context.GetBlips() Doesn't grab all the blips? Only those starred in the example below: * Original Blip * Direct Reply Blip - Inline Reply Blip I'd love to know a w

[Google Wave APIs] Re: How to delete all the blips in a wave except the root blip??

2009-10-28 Thread pamela (Google Employee)
What language are you using? What code have you tried? A tip for posting in forums: Try to avoid over-using the phrase 'its urgent' - and if you are going to use that phrase, explain the reason for the urgency. Thanks! - pamela On Thu, Oct 29, 2009 at 1:44 AM, shitu wrote: > > Hi all.. > I wa