[Google Wave APIs] Re: How to get form data in OnFormButtonClicked

2009-09-16 Thread Daniel Faust

def showMenu(doc):
  doc.AppendElement(document.FormElement('BUTTON', 'subscribe',
'Subscribe'))
  doc.AppendElement(document.FormElement('BUTTON', 'unsubscribe',
'Unsubscribe'))

def OnFormButtonClicked(properties, context):
  button = properties['button']
  if button == 'subscribe':
pass
  if button == 'unsubscribe':
pass


On Sep 16, 11:04 pm, Anthoni anthoni.gard...@gmail.com wrote:
 Hi jjanging,

 I have found a way how to do this now, but unfortunately I do not
 currently have my code to hand (am changing my OS over to Ubuntu and
 my python code is backed up)
 If you want when I get up and running with Ubuntu (hopefully should be
 tomorrow) I can email you the code that I use ?

 Regards
 Anthoni

 On Sep 15, 6:37 am, jianing yang jianingy.y...@gmail.com wrote:

  Hi,

  I am making a robot which needs to read data from robot creating form,
  my code looks like:

  def OnFormButtonClicked(properties, context):
    blip = context.GetBlipById(properties['blipId'])
    form = blip.GetDocument().GetFormView()
    button = form.GetFormElement(publish).GetValue()
    logging.debug(button)

  After running into this function, I got a error message
  AttributeError: 'OpBasedDocument' object has no attribute
  'GetFormView'. It seems that there is no method called GetFormView()
  for document in python client. But seems there is one in Java client
  library. Is there any work around for this problem?

  Also, I've read Anthoni's post 
  athttp://groups.google.com/group/google-wave-api/browse_frm/thread/b47a...,
  but no one answered that time.

  Thanks very much
--~--~-~--~~~---~--~~
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: GetTitle() not working anymore?

2009-09-16 Thread Peter Svedberg

Yes, I can confirm this. At least for a FORM_BUTTON_CLICKED event the
context does not return the title. Or more precisely, the title
appears to be empty.

  public void processEvents(RobotMessageBundle context) {
Wavelet wavelet = context.getWavelet();
TextView text = wavelet.getRootBlip().getDocument();
if (context.wasSelfAdded()) {
  wavelet.setTitle(title);
  text.append(\ntitle:  + wavelet.getTitle() + \n);
  text.getFormView().append(new FormElement(ElementType.BUTTON,
button-name, click-me));
} else {
  text.append(\ntitle:  + wavelet.getTitle() + \n);
}
  }

Output,
on self added:
title: title

after button is clicked:
title:

Excerpt from log with empty title field:
type:FORM_BUTTON_CLICKED}]},wavelet:{lastModifiedTime:
1253138910552,title:,waveletId:wavesandbox.com!conv+root,

this is with content=true in capabilities.xml for both events




--~--~-~--~~~---~--~~
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: Password Reset

2009-09-16 Thread Michael Manning
Same here. It has been at least 2 weeks since I have been able to log in
using my mmanning and mmanning-test accounts.

I have also had no reply from the googleinvites admin email.
Anyone have any advice?

Cheers,
Michael Manning

On Sep 16, 2009 5:24 PM, Danielle Morrill morrilldanie...@gmail.com
wrote:


I've had the same problem with both of my accounts danielle@ and
danielle-test@


Danielle

On Sep 11, 2009, at 9:11 AM, Tellio wrote:   I am having the same
problems. Neither of my acc...

--~--~-~--~~~---~--~~
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: Wave content search engine indexing

2009-09-16 Thread Jason Salas

Good thoughts, Robin.  People running their own federated servers will
certainly want to have their stuff indexed by their own internal
search services, but not necessarily by the Internet at-large.  It'll
be interesting to see how this plays out.



On Wed, Sep 16, 2009 at 12:25 AM, robin robinbo...@googlemail.com wrote:

 We had an all day workshop here in Cambridge (UK) yesterday about the
 future of Academic Networks. The consensus was, after much gnashing
 for academic solutions that are poor copies of existing corporate
 apps, something very like Google Waves. I think that universities in
 particular are going to take the Google Waves like a flock of ducks to
 water. However, they are almost certainly going to want to be running
 their own local federated wave servers, so some form of indexing and
 searchability is going to be essential in my mind.


 On Sep 7, 10:20 pm, Jason Salas digitalpontificat...@gmail.com
 wrote:
 Hi everyone,

 Here's something I thought about last night in the car as my technical
 marketing side took hold...since at the moment waves are published
 to the public Web, I think we can assume that their contained content
 is NOT spidered/indexed by Google Search. But on the contrary, what
 are the opportunities down the road for those who choose to run their
 own wave servers and actually have their data be listed for searches
 (i.e., educators, government agencies, marketing firms)?

 Will/should we be able to toggle the ability for Wave content to be
 discovered and regenerated in perpetuity (like Twitter), or have such
 data be hands-off, being inherently messaging of a privileged nature
 (like Facebook)?

 Thought?

 Jason :)
 jasonsa...@wavesandbox.com

 


--~--~-~--~~~---~--~~
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 get form data in OnFormButtonClicked

2009-09-16 Thread jianing yang

alright, I solved it by adding some functions to waveapi. Here is my
patch:


--- waveapi.orig/document.py2009-08-13 15:42:15.0 +0800
+++ waveapi/document.py 2009-09-17 10:00:07.0 +0800
@@ -161,6 +161,12 @@
 super(FormElement, self).__init__(element_type,
 name=name, value=value, default_value=default_value,
label=label)

+  def getName(self):
+return self.name
+
+  def getValue(self):
+return self.value
+

 class Gadget(Element):

diff -Nu -x '*.pyc' waveapi.orig/model.py waveapi/model.py
--- waveapi.orig/model.py   2009-08-13 15:42:15.0 +0800
+++ waveapi/model.py2009-09-17 09:37:40.0 +0800
@@ -268,6 +268,9 @@
 Returns the raw text content of this document.
 return self._blip.content

+  def GetFormElements(self):
+return self._blip.elements
+

 class Event(object):
   Data describing a single event.


On Sep 15, 1:37 pm, jianing yang jianingy.y...@gmail.com wrote:
 Hi,

 I am making a robot which needs to read data from robot creating form,
 my code looks like:

 def OnFormButtonClicked(properties, context):
   blip = context.GetBlipById(properties['blipId'])
   form = blip.GetDocument().GetFormView()
   button = form.GetFormElement(publish).GetValue()
   logging.debug(button)

 After running into this function, I got a error message
 AttributeError: 'OpBasedDocument' object has no attribute
 'GetFormView'. It seems that there is no method called GetFormView()
 for document in python client. But seems there is one in Java client
 library. Is there any work around for this problem?

 Also, I've read Anthoni's post 
 athttp://groups.google.com/group/google-wave-api/browse_frm/thread/b47a...,
 but no one answered that time.

 Thanks very much
--~--~-~--~~~---~--~~
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: .appendMarkup guide

2009-09-16 Thread Peter LaBanca
I am not sure if there is a reference doc for appendMarkup(), but if you
want to insert a line break just use escape characters. They work just fine
in Wave. So you can just add a \n anywhere in a TextView.append() method and
it will automatically insert the line break. You can also use the \n in
appendMarkup() as well. I hope this is what you were looking for.

On Wed, Sep 16, 2009 at 11:15 PM, kyleRoche kyle.m.ro...@gmail.com wrote:


 Is there a reference doc on what we can put in the content for
 the .appendMarkup() method? I'm trying to get some line breaks to work
 w/ no luck.

 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---