[Google Wave APIs] Re: how to detect a new blip added to a wave?

2009-10-18 Thread ScottR

To elaborate a bit on Francois's comment: the configuration.xml gets
generated based on your code when you run appcfg.py which bundles your
code, the config, and deploys it all to the appengine. I think the Mac
and windows experience is a bit different with the launcher-- this is
just command-line on ubuntu 9.

After I made some dopey mistakes I found it useful to check for typos
by making this call right after the appcfg program was done:
curl http://whatever.appspot.com/_wave/capabilities.xml


On Oct 18, 4:57 am, François Parmentier
 wrote:
> With python, the capabilities.xml is generated.
> You have to maintain app.yaml and to register the handlers to use in
> your code.
>
> On 11 oct, 18:45, Thomas Wrobel  wrote:
>
> > oh, hmz...I just followed the 
> > tutorial;http://code.google.com/intl/nl-NL/apis/wave/extensions/robots/java-tu...
> > The python tutorial is 
> > here;http://code.google.com/intl/nl-NL/apis/wave/extensions/robots/python-...
>
> > I think you need a particular directory structure. The java one seems
> > to specify it better then the python one.
>
> > ~~
> > Reviews of anything, by anyone;www.rateoholic.co.uk
> > Please try out my new site and give feedback :)
>
> > 2009/10/11 JamesBrooks :
>
> > > I never even had a war directory, maybe I should install the eclipse
> > > plugin...
>
> > > On Oct 11, 5:25 pm, ThomasWrobel  wrote:
> > >> You dont see a capabilities.xml file in your war directory anywhere?
> > >> It should be in war/_wave I think.
> > >> I'm working in java here, but I think the xml should be the same.
>
> > >> On 11 okt, 18:22, JamesBrooks  wrote:
>
> > >> > I know what an XML file is, but how do I edit it? I'm writing my robot
> > >> > in Python, and using the App Engine to upload it, but I don't see
> > >> > where I edit it.
>
> > >> > > I just edited it using eclipse and added the WAVELET_BLIP_CREATED
> > >> > > line.
> > >> > > Its just a text file with a XML extension.
>
> > >> > > On 11 okt, 18:14, JamesBrooks  wrote:
>
> > >> > > > How do you modify the XML file?
>
> > >> > > > On Oct 10, 1:06 pm, Paul Staab  wrote:
>
> > >> > > > > do start with simple things:
> > >> > > > > have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in 
> > >> > > > > the
> > >> > > > > capabillities.xml and changed its version-number?
>
> > >> > > > > On 10 Okt., 12:50, twdarkflame  wrote:
>
> > >> > > > > > I'm probably doing something silly here, but I'm just trying 
> > >> > > > > > to get my
> > >> > > > > > bot to respond to a post.
>
> > >> > > > > > I tried;
>
> > >> > > > > >  for (Event e: bundle.getBlipSubmittedEvents()) {
> > >> > > > > >            Blip blip2 = wavelet.appendBlip();
> > >> > > > > >               TextView textView2 = blip2.getDocument();
> > >> > > > > >               
> > >> > > > > > textView2.append("event="+e.getType().toString());
>
> > >> > > > > >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> > >> > > > > >                   Blip blip3 = wavelet.appendBlip();
> > >> > > > > >                   TextView textView3 = blip3.getDocument();
> > >> > > > > >                   textView3.append("Thats a good 
> > >> > > > > > comment!5/10");
> > >> > > > > >                 }
>
> > >> > > > > >               if (e.getType() == 
> > >> > > > > > EventType.WAVELET_BLIP_CREATED ) {
> > >> > > > > >                   Blip blip4 = wavelet.appendBlip();
> > >> > > > > >                   TextView textView4 = blip4.getDocument();
> > >> > > > > >                   textView4.append("Thats a good comment! 
> > >> > > > > > 10/10");
> > >> > > > > >                 }
> > >> > > > > >     }
>
> > >> > > > > > And I get nothing at all
>
> > >> > > > > > I also tried putting it in the
> > >> > > > > >  for (Event e: bundle.getEvents()) {
> > >> > > > > > ...
>
> > >> > > > > > }
>
> > >> > > > > > loop and also nothing.
>
> > >> > > > > > However,  if (e.getType() == 
> > >> > > > > > EventType.WAVELET_PARTICIPANTS_CHANGED)
> > >> > > > > > {    
> > >> > > > > > does trigger an response.
> > >> > > > > > And so does bundle.wasSelfAdded() (which of course isnt in a 
> > >> > > > > > loop).
>
> > >> > > > > > So...what am I missing?

--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-18 Thread François Parmentier

With python, the capabilities.xml is generated.
You have to maintain app.yaml and to register the handlers to use in
your code.

On 11 oct, 18:45, Thomas Wrobel  wrote:
> oh, hmz...I just followed the 
> tutorial;http://code.google.com/intl/nl-NL/apis/wave/extensions/robots/java-tu...
> The python tutorial is 
> here;http://code.google.com/intl/nl-NL/apis/wave/extensions/robots/python-...
>
> I think you need a particular directory structure. The java one seems
> to specify it better then the python one.
>
> ~~
> Reviews of anything, by anyone;www.rateoholic.co.uk
> Please try out my new site and give feedback :)
>
> 2009/10/11 JamesBrooks :
>
>
>
>
>
> > I never even had a war directory, maybe I should install the eclipse
> > plugin...
>
> > On Oct 11, 5:25 pm, ThomasWrobel  wrote:
> >> You dont see a capabilities.xml file in your war directory anywhere?
> >> It should be in war/_wave I think.
> >> I'm working in java here, but I think the xml should be the same.
>
> >> On 11 okt, 18:22, JamesBrooks  wrote:
>
> >> > I know what an XML file is, but how do I edit it? I'm writing my robot
> >> > in Python, and using the App Engine to upload it, but I don't see
> >> > where I edit it.
>
> >> > > I just edited it using eclipse and added the WAVELET_BLIP_CREATED
> >> > > line.
> >> > > Its just a text file with a XML extension.
>
> >> > > On 11 okt, 18:14, JamesBrooks  wrote:
>
> >> > > > How do you modify the XML file?
>
> >> > > > On Oct 10, 1:06 pm, Paul Staab  wrote:
>
> >> > > > > do start with simple things:
> >> > > > > have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
> >> > > > > capabillities.xml and changed its version-number?
>
> >> > > > > On 10 Okt., 12:50, twdarkflame  wrote:
>
> >> > > > > > I'm probably doing something silly here, but I'm just trying to 
> >> > > > > > get my
> >> > > > > > bot to respond to a post.
>
> >> > > > > > I tried;
>
> >> > > > > >  for (Event e: bundle.getBlipSubmittedEvents()) {
> >> > > > > >            Blip blip2 = wavelet.appendBlip();
> >> > > > > >               TextView textView2 = blip2.getDocument();
> >> > > > > >               textView2.append("event="+e.getType().toString());
>
> >> > > > > >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> >> > > > > >                   Blip blip3 = wavelet.appendBlip();
> >> > > > > >                   TextView textView3 = blip3.getDocument();
> >> > > > > >                   textView3.append("Thats a good comment!5/10");
> >> > > > > >                 }
>
> >> > > > > >               if (e.getType() == EventType.WAVELET_BLIP_CREATED 
> >> > > > > > ) {
> >> > > > > >                   Blip blip4 = wavelet.appendBlip();
> >> > > > > >                   TextView textView4 = blip4.getDocument();
> >> > > > > >                   textView4.append("Thats a good comment! 
> >> > > > > > 10/10");
> >> > > > > >                 }
> >> > > > > >     }
>
> >> > > > > > And I get nothing at all
>
> >> > > > > > I also tried putting it in the
> >> > > > > >  for (Event e: bundle.getEvents()) {
> >> > > > > > ...
>
> >> > > > > > }
>
> >> > > > > > loop and also nothing.
>
> >> > > > > > However,  if (e.getType() == 
> >> > > > > > EventType.WAVELET_PARTICIPANTS_CHANGED)
> >> > > > > > {    
> >> > > > > > does trigger an response.
> >> > > > > > And so does bundle.wasSelfAdded() (which of course isnt in a 
> >> > > > > > loop).
>
> >> > > > > > So...what am I missing?

--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-11 Thread Thomas Wrobel

oh, hmz...I just followed the tutorial;
http://code.google.com/intl/nl-NL/apis/wave/extensions/robots/java-tutorial.html
The python tutorial is here;
http://code.google.com/intl/nl-NL/apis/wave/extensions/robots/python-tutorial.html

I think you need a particular directory structure. The java one seems
to specify it better then the python one.


~~
Reviews of anything, by anyone;
www.rateoholic.co.uk
Please try out my new site and give feedback :)



2009/10/11 JamesBrooks :
>
> I never even had a war directory, maybe I should install the eclipse
> plugin...
>
> On Oct 11, 5:25 pm, ThomasWrobel  wrote:
>> You dont see a capabilities.xml file in your war directory anywhere?
>> It should be in war/_wave I think.
>> I'm working in java here, but I think the xml should be the same.
>>
>> On 11 okt, 18:22, JamesBrooks  wrote:
>>
>>
>>
>> > I know what an XML file is, but how do I edit it? I'm writing my robot
>> > in Python, and using the App Engine to upload it, but I don't see
>> > where I edit it.
>>
>> > > I just edited it using eclipse and added the WAVELET_BLIP_CREATED
>> > > line.
>> > > Its just a text file with a XML extension.
>>
>> > > On 11 okt, 18:14, JamesBrooks  wrote:
>>
>> > > > How do you modify the XML file?
>>
>> > > > On Oct 10, 1:06 pm, Paul Staab  wrote:
>>
>> > > > > do start with simple things:
>> > > > > have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
>> > > > > capabillities.xml and changed its version-number?
>>
>> > > > > On 10 Okt., 12:50, twdarkflame  wrote:
>>
>> > > > > > I'm probably doing something silly here, but I'm just trying to 
>> > > > > > get my
>> > > > > > bot to respond to a post.
>>
>> > > > > > I tried;
>>
>> > > > > >  for (Event e: bundle.getBlipSubmittedEvents()) {
>> > > > > >            Blip blip2 = wavelet.appendBlip();
>> > > > > >               TextView textView2 = blip2.getDocument();
>> > > > > >               textView2.append("event="+e.getType().toString());
>>
>> > > > > >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>>
>> > > > > >                   Blip blip3 = wavelet.appendBlip();
>> > > > > >                   TextView textView3 = blip3.getDocument();
>> > > > > >                   textView3.append("Thats a good comment!5/10");
>> > > > > >                 }
>>
>> > > > > >               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
>> > > > > >                   Blip blip4 = wavelet.appendBlip();
>> > > > > >                   TextView textView4 = blip4.getDocument();
>> > > > > >                   textView4.append("Thats a good comment! 10/10");
>> > > > > >                 }
>> > > > > >     }
>>
>> > > > > > And I get nothing at all
>>
>> > > > > > I also tried putting it in the
>> > > > > >  for (Event e: bundle.getEvents()) {
>> > > > > > ...
>>
>> > > > > > }
>>
>> > > > > > loop and also nothing.
>>
>> > > > > > However,  if (e.getType() == 
>> > > > > > EventType.WAVELET_PARTICIPANTS_CHANGED)
>> > > > > > {    
>> > > > > > does trigger an response.
>> > > > > > And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>>
>> > > > > > So...what am I missing?
> >
>

--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-11 Thread JamesBrooks

I never even had a war directory, maybe I should install the eclipse
plugin...

On Oct 11, 5:25 pm, ThomasWrobel  wrote:
> You dont see a capabilities.xml file in your war directory anywhere?
> It should be in war/_wave I think.
> I'm working in java here, but I think the xml should be the same.
>
> On 11 okt, 18:22, JamesBrooks  wrote:
>
>
>
> > I know what an XML file is, but how do I edit it? I'm writing my robot
> > in Python, and using the App Engine to upload it, but I don't see
> > where I edit it.
>
> > > I just edited it using eclipse and added the WAVELET_BLIP_CREATED
> > > line.
> > > Its just a text file with a XML extension.
>
> > > On 11 okt, 18:14, JamesBrooks  wrote:
>
> > > > How do you modify the XML file?
>
> > > > On Oct 10, 1:06 pm, Paul Staab  wrote:
>
> > > > > do start with simple things:
> > > > > have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
> > > > > capabillities.xml and changed its version-number?
>
> > > > > On 10 Okt., 12:50, twdarkflame  wrote:
>
> > > > > > I'm probably doing something silly here, but I'm just trying to get 
> > > > > > my
> > > > > > bot to respond to a post.
>
> > > > > > I tried;
>
> > > > > >  for (Event e: bundle.getBlipSubmittedEvents()) {
> > > > > >            Blip blip2 = wavelet.appendBlip();
> > > > > >               TextView textView2 = blip2.getDocument();
> > > > > >               textView2.append("event="+e.getType().toString());
>
> > > > > >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> > > > > >                   Blip blip3 = wavelet.appendBlip();
> > > > > >                   TextView textView3 = blip3.getDocument();
> > > > > >                   textView3.append("Thats a good comment!5/10");
> > > > > >                 }
>
> > > > > >               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
> > > > > >                   Blip blip4 = wavelet.appendBlip();
> > > > > >                   TextView textView4 = blip4.getDocument();
> > > > > >                   textView4.append("Thats a good comment! 10/10");
> > > > > >                 }
> > > > > >     }
>
> > > > > > And I get nothing at all
>
> > > > > > I also tried putting it in the
> > > > > >  for (Event e: bundle.getEvents()) {
> > > > > > ...
>
> > > > > > }
>
> > > > > > loop and also nothing.
>
> > > > > > However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> > > > > > {    
> > > > > > does trigger an response.
> > > > > > And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> > > > > > So...what am I missing?
--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-11 Thread ThomasWrobel

You dont see a capabilities.xml file in your war directory anywhere?
It should be in war/_wave I think.
I'm working in java here, but I think the xml should be the same.

On 11 okt, 18:22, JamesBrooks  wrote:
> I know what an XML file is, but how do I edit it? I'm writing my robot
> in Python, and using the App Engine to upload it, but I don't see
> where I edit it.
>
>
>
> > I just edited it using eclipse and added the WAVELET_BLIP_CREATED
> > line.
> > Its just a text file with a XML extension.
>
> > On 11 okt, 18:14, JamesBrooks  wrote:
>
> > > How do you modify the XML file?
>
> > > On Oct 10, 1:06 pm, Paul Staab  wrote:
>
> > > > do start with simple things:
> > > > have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
> > > > capabillities.xml and changed its version-number?
>
> > > > On 10 Okt., 12:50, twdarkflame  wrote:
>
> > > > > I'm probably doing something silly here, but I'm just trying to get my
> > > > > bot to respond to a post.
>
> > > > > I tried;
>
> > > > >  for (Event e: bundle.getBlipSubmittedEvents()) {
> > > > >            Blip blip2 = wavelet.appendBlip();
> > > > >               TextView textView2 = blip2.getDocument();
> > > > >               textView2.append("event="+e.getType().toString());
>
> > > > >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> > > > >                   Blip blip3 = wavelet.appendBlip();
> > > > >                   TextView textView3 = blip3.getDocument();
> > > > >                   textView3.append("Thats a good comment!5/10");
> > > > >                 }
>
> > > > >               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
> > > > >                   Blip blip4 = wavelet.appendBlip();
> > > > >                   TextView textView4 = blip4.getDocument();
> > > > >                   textView4.append("Thats a good comment! 10/10");
> > > > >                 }
> > > > >     }
>
> > > > > And I get nothing at all
>
> > > > > I also tried putting it in the
> > > > >  for (Event e: bundle.getEvents()) {
> > > > > ...
>
> > > > > }
>
> > > > > loop and also nothing.
>
> > > > > However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> > > > > {    
> > > > > does trigger an response.
> > > > > And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> > > > > So...what am I missing?
--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-11 Thread JamesBrooks

I know what an XML file is, but how do I edit it? I'm writing my robot
in Python, and using the App Engine to upload it, but I don't see
where I edit it.

> I just edited it using eclipse and added the WAVELET_BLIP_CREATED
> line.
> Its just a text file with a XML extension.
>
> On 11 okt, 18:14, JamesBrooks  wrote:
>
>
>
> > How do you modify the XML file?
>
> > On Oct 10, 1:06 pm, Paul Staab  wrote:
>
> > > do start with simple things:
> > > have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
> > > capabillities.xml and changed its version-number?
>
> > > On 10 Okt., 12:50, twdarkflame  wrote:
>
> > > > I'm probably doing something silly here, but I'm just trying to get my
> > > > bot to respond to a post.
>
> > > > I tried;
>
> > > >  for (Event e: bundle.getBlipSubmittedEvents()) {
> > > >            Blip blip2 = wavelet.appendBlip();
> > > >               TextView textView2 = blip2.getDocument();
> > > >               textView2.append("event="+e.getType().toString());
>
> > > >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> > > >                   Blip blip3 = wavelet.appendBlip();
> > > >                   TextView textView3 = blip3.getDocument();
> > > >                   textView3.append("Thats a good comment!5/10");
> > > >                 }
>
> > > >               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
> > > >                   Blip blip4 = wavelet.appendBlip();
> > > >                   TextView textView4 = blip4.getDocument();
> > > >                   textView4.append("Thats a good comment! 10/10");
> > > >                 }
> > > >     }
>
> > > > And I get nothing at all
>
> > > > I also tried putting it in the
> > > >  for (Event e: bundle.getEvents()) {
> > > > ...
>
> > > > }
>
> > > > loop and also nothing.
>
> > > > However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> > > > {    
> > > > does trigger an response.
> > > > And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> > > > So...what am I missing?
--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-11 Thread ThomasWrobel

This is my xml file;
http://presentcheck.appspot.com/_wave/capabilities.xml


http://wave.google.com/extensions/robots/1.0";>
  






  
  31



I just edited it using eclipse and added the WAVELET_BLIP_CREATED
line.
Its just a text file with a XML extension.


On 11 okt, 18:14, JamesBrooks  wrote:
> How do you modify the XML file?
>
> On Oct 10, 1:06 pm, Paul Staab  wrote:
>
>
>
> > do start with simple things:
> > have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
> > capabillities.xml and changed its version-number?
>
> > On 10 Okt., 12:50, twdarkflame  wrote:
>
> > > I'm probably doing something silly here, but I'm just trying to get my
> > > bot to respond to a post.
>
> > > I tried;
>
> > >  for (Event e: bundle.getBlipSubmittedEvents()) {
> > >            Blip blip2 = wavelet.appendBlip();
> > >               TextView textView2 = blip2.getDocument();
> > >               textView2.append("event="+e.getType().toString());
>
> > >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> > >                   Blip blip3 = wavelet.appendBlip();
> > >                   TextView textView3 = blip3.getDocument();
> > >                   textView3.append("Thats a good comment!5/10");
> > >                 }
>
> > >               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
> > >                   Blip blip4 = wavelet.appendBlip();
> > >                   TextView textView4 = blip4.getDocument();
> > >                   textView4.append("Thats a good comment! 10/10");
> > >                 }
> > >     }
>
> > > And I get nothing at all
>
> > > I also tried putting it in the
> > >  for (Event e: bundle.getEvents()) {
> > > ...
>
> > > }
>
> > > loop and also nothing.
>
> > > However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> > > {    
> > > does trigger an response.
> > > And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> > > So...what am I missing?
--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-11 Thread JamesBrooks

How do you modify the XML file?

On Oct 10, 1:06 pm, Paul Staab  wrote:
> do start with simple things:
> have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
> capabillities.xml and changed its version-number?
>
> On 10 Okt., 12:50, twdarkflame  wrote:
>
>
>
> > I'm probably doing something silly here, but I'm just trying to get my
> > bot to respond to a post.
>
> > I tried;
>
> >  for (Event e: bundle.getBlipSubmittedEvents()) {
> >            Blip blip2 = wavelet.appendBlip();
> >               TextView textView2 = blip2.getDocument();
> >               textView2.append("event="+e.getType().toString());
>
> >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> >                   Blip blip3 = wavelet.appendBlip();
> >                   TextView textView3 = blip3.getDocument();
> >                   textView3.append("Thats a good comment!5/10");
> >                 }
>
> >               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
> >                   Blip blip4 = wavelet.appendBlip();
> >                   TextView textView4 = blip4.getDocument();
> >                   textView4.append("Thats a good comment! 10/10");
> >                 }
> >     }
>
> > And I get nothing at all
>
> > I also tried putting it in the
> >  for (Event e: bundle.getEvents()) {
> > ...
>
> > }
>
> > loop and also nothing.
>
> > However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> > {    
> > does trigger an response.
> > And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> > So...what am I missing?
--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-11 Thread ThomasWrobel

Yes, as both Paul and Andy pointed out, I stupidly forgot to put the
correct registrations in the cabilitys file.
Its working fine now ;)

Smola - Thanks, that clarifys things. My plan was just to get anything
at all happening on screen, and deduce what did what from there :)




On 10 okt, 14:06, Paul Staab  wrote:
> do start with simple things:
> have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
> capabillities.xml and changed its version-number?
>
> On 10 Okt., 12:50, twdarkflame  wrote:
>
>
>
> > I'm probably doing something silly here, but I'm just trying to get my
> > bot to respond to a post.
>
> > I tried;
>
> >  for (Event e: bundle.getBlipSubmittedEvents()) {
> >            Blip blip2 = wavelet.appendBlip();
> >               TextView textView2 = blip2.getDocument();
> >               textView2.append("event="+e.getType().toString());
>
> >               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
> >                   Blip blip3 = wavelet.appendBlip();
> >                   TextView textView3 = blip3.getDocument();
> >                   textView3.append("Thats a good comment!5/10");
> >                 }
>
> >               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
> >                   Blip blip4 = wavelet.appendBlip();
> >                   TextView textView4 = blip4.getDocument();
> >                   textView4.append("Thats a good comment! 10/10");
> >                 }
> >     }
>
> > And I get nothing at all
>
> > I also tried putting it in the
> >  for (Event e: bundle.getEvents()) {
> > ...
>
> > }
>
> > loop and also nothing.
>
> > However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> > {    
> > does trigger an response.
> > And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> > So...what am I missing?
--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-10 Thread Paul Staab

do start with simple things:
have you registiered BLIP_SUBMITTED and WAVELET_BLIP_CREATED in the
capabillities.xml and changed its version-number?

On 10 Okt., 12:50, twdarkflame  wrote:
> I'm probably doing something silly here, but I'm just trying to get my
> bot to respond to a post.
>
> I tried;
>
>  for (Event e: bundle.getBlipSubmittedEvents()) {
>            Blip blip2 = wavelet.appendBlip();
>               TextView textView2 = blip2.getDocument();
>               textView2.append("event="+e.getType().toString());
>
>               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
>                   Blip blip3 = wavelet.appendBlip();
>                   TextView textView3 = blip3.getDocument();
>                   textView3.append("Thats a good comment!5/10");
>                 }
>
>               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
>                   Blip blip4 = wavelet.appendBlip();
>                   TextView textView4 = blip4.getDocument();
>                   textView4.append("Thats a good comment! 10/10");
>                 }
>     }
>
> And I get nothing at all
>
> I also tried putting it in the
>  for (Event e: bundle.getEvents()) {
> ...
>
> }
>
> loop and also nothing.
>
> However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> {    
> does trigger an response.
> And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> So...what am I missing?

--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-10 Thread Smola

I'd also like to point out a couple things  First off, when you click
reply on any blip, the WAVELET_BLIP_CREATED event will fire, so you
will receive your "good comment" blip before any comment is even
made.  Secondly, use bundle.getEvents() as opposed to
bundle.getBlipSubmittedEvents() if you want to listen and test for ANY
event the client sends with the bundle.



On Oct 10, 6:50 am, twdarkflame  wrote:
> I'm probably doing something silly here, but I'm just trying to get my
> bot to respond to a post.
>
> I tried;
>
>  for (Event e: bundle.getBlipSubmittedEvents()) {
>            Blip blip2 = wavelet.appendBlip();
>               TextView textView2 = blip2.getDocument();
>               textView2.append("event="+e.getType().toString());
>
>               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
>                   Blip blip3 = wavelet.appendBlip();
>                   TextView textView3 = blip3.getDocument();
>                   textView3.append("Thats a good comment!5/10");
>                 }
>
>               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
>                   Blip blip4 = wavelet.appendBlip();
>                   TextView textView4 = blip4.getDocument();
>                   textView4.append("Thats a good comment! 10/10");
>                 }
>     }
>
> And I get nothing at all
>
> I also tried putting it in the
>  for (Event e: bundle.getEvents()) {
> ...
>
> }
>
> loop and also nothing.
>
> However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> {    
> does trigger an response.
> And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> So...what am I missing?
--~--~-~--~~~---~--~~
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: how to detect a new blip added to a wave?

2009-10-10 Thread F. Andy Seidl

Make sure your robot has registered receive the BLIP_SUBMITTED event.
You capaibilities.xml file must specify that you want that event.
When you modify capabilities.xml, be sure to update the version number
in that file or the change will not take effect.

On Oct 10, 6:50 am, twdarkflame  wrote:
> I'm probably doing something silly here, but I'm just trying to get my
> bot to respond to a post.
>
> I tried;
>
>  for (Event e: bundle.getBlipSubmittedEvents()) {
>            Blip blip2 = wavelet.appendBlip();
>               TextView textView2 = blip2.getDocument();
>               textView2.append("event="+e.getType().toString());
>
>               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
>                   Blip blip3 = wavelet.appendBlip();
>                   TextView textView3 = blip3.getDocument();
>                   textView3.append("Thats a good comment!5/10");
>                 }
>
>               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
>                   Blip blip4 = wavelet.appendBlip();
>                   TextView textView4 = blip4.getDocument();
>                   textView4.append("Thats a good comment! 10/10");
>                 }
>     }
>
> And I get nothing at all
>
> I also tried putting it in the
>  for (Event e: bundle.getEvents()) {
> ...
>
> }
>
> loop and also nothing.
>
> However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> {    
> does trigger an response.
> And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> So...what am I missing?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---