[Google Wave APIs] Re: javascript alert needed to avoid wave.getState == null ?!

2009-11-16 Thread \x00
this worked for me if (typeof wave != 'undefined' wave.isInWaveContainer()){ wave.setStateCallback(stateUpdated); wave.getState() } that can also trigger the update callback once I din't bother with registerOnLoadHandler as jquery does the load -- You received this message

[Google Wave APIs] Re: javascript alert needed to avoid wave.getState == null ?!

2009-11-16 Thread \x00
I would get rid of the global variables exentually. -- 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 APIs] Re: gadget state unavailable in onload handler

2009-11-16 Thread \x00
http://groups.google.com/group/google-wave-api/browse_thread/thread/f5e2cd06e804f8c2 I don't use Just put if (typeof wave != 'undefined' wave.isInWaveContainer()){ wave.setStateCallback(stateUpdated); wave.getState() gadgets.window.adjustHeight(); } at the end of

[Google Wave APIs] Re: Blip ID, OnBlipSubmitted

2009-11-16 Thread Tyler Ruppert
That worked Thanks On Nov 13, 5:20 pm, Sny luthra.su...@gmail.com wrote: Try this :) def OnBlipSubmitted(properties, context):   blipId = properties['blipId'] On Nov 14, 1:16 am, TylerRupperttrupp...@semissourian.com wrote: Thanks for all your help guys.  I think I may have it figured

[Google Wave APIs] Re: Dynamic Gadget width

2009-11-16 Thread \x00
gadget take on the with of the client app. What are you saying you want an inline gadget? Not possible. It is possible to do some funky stuff within that gadget itself like a dynamic horizontal scroll I'm doing. Set the main div inside you gadget to something like 700px and an outer frame div to

[Google Wave APIs] Re: Dynamic Gadget width

2009-11-16 Thread \x00
...you can put you own custom scroll bar, like the wave client. -- 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 APIs] Re: gadget state unavailable in onload handler

2009-11-16 Thread qMax
Ok. I believe in magic. But this time i cannot figure out what exact magic is necessary. Here is minimal gadget, containing only debug log and printing state/ mode/viewer/host at various stages: http://qmax.academ.org/wave/test.xml At start of onloadHandler there is: if (wave === undefined ||

[Google Wave APIs] testing: meeting time calculator across timezones, v2

2009-11-16 Thread qMax
And hi. Finally redesigned gadget to show available time for meeting participants: http://serial-experiments-qmax.googlecode.com/svn/wave-gadget-meeting/trunk/meeting.xml Now it's matter to click/select your free hours and everyone will see it in their local timezones. Please welcome to test

[Google Wave APIs] testing: A simple BOT

2009-11-16 Thread Sny
Available commands: 1) it can change emoticons into smiley images. 2) weather command [weather-cityName] ex. [weather-pune] 3) Radio gadget command [radio] https://wave.google.com/wave/?pli=1#restored:wave:googlewave.com!w%252ByVcEyB--A -- You received this message because you are subscribed to

[Google Wave APIs] Re: GADGET_STATE_CHANGED (Preview) does not fire

2009-11-16 Thread Olreich
When I changed the version on my robot, I found that appEngine kept serving v1 of the application. To fix this, I went into the Versions panel on the dashboard (under the Administration header) and made v2 my default version. Then removed and re-added the bot, and everything was updated well. --

Re: [Google Wave APIs] AddParticipant seems working on log, but not on wave

2009-11-16 Thread David Nesting
On Sun, Nov 15, 2009 at 4:04 AM, Makoto inoue...@googlemail.com wrote: Google Wave does not seem to have a functionality to define my own group (Correct me I was wrong. I thought this kind of mailing-list is the most basic feature for any collaboration software, so I have been wondering why

[Google Wave APIs] Re: Programmatically creating waves, was: Will other panel's functionality be exposed?

2009-11-16 Thread Olreich
To create a wave via programming in Java: wavelet.createWavelet(participants, dataDocument); wavelet - A Wavelet object. participants - A ListString of the participants that you want to include (format of name: usern...@googlewave.com) dataDocument - A String referring to a named dataDocument

[Google Wave APIs] Re: Python and Bot-making, problems faced with tutorial as of Nov 15th when the Bots quit..

2009-11-16 Thread Olreich
Python is extremely limited in how it interacts with waves (notably, it can't delete blips). On Nov 15, 11:26 pm, iJames ijamessa...@gmail.com wrote: Oh!  The Java API has more functionality? I'm really liking playing in Python too! On Nov 15, 6:54 pm, Olreich olre...@gmail.com wrote:

[Google Wave APIs] Re: Getting Things Done for Wave

2009-11-16 Thread Olreich
If robots get access to folders and/or tags, that organizes the inbox pretty easily. Also, both Java and Python have persistence models, so an extra wave for Data is unnecessary. One could also use a bunch of Data Documents for the data as well. On Nov 15, 9:44 pm, Jo hyphen el

[Google Wave APIs] Re: GADGET_STATE_CHANGED (Preview) does not fire

2009-11-16 Thread qMax
This seems to be bug#278 http://code.google.com/p/google-wave-resources/issues/detail?id=278 changing appengine version will let appengine to serve new capabilities, but wave server will not rerequest it. until this bug is fixed the only way is to start robot with new capabilities is to upload

[Google Wave APIs] Re: GADGET_STATE_CHANGED (Preview) does not fire

2009-11-16 Thread qMax
And GADGET_STATE_CHANGED is not in current API neither in java nor python. Where did you found it ? On Nov 17, 1:02 am, hcvst hcv...@googlemail.com wrote: Hi, my bot's capabilities.xml states that it is interested in GADGET_STATE_CHANGED events. I've upped the bot's version after adding this

[Google Wave APIs] Re: gadget state unavailable in onload handler

2009-11-16 Thread \x00
It is in a wave by specification. The gaget load event basically amounts to sticking scriptgadgets.util.runOnLoadHandlers();/script on the end of your gadget. But there is still some code appended after that. Don't bother specifying head and body tags. Just shove in the scripting and the rest

[Google Wave APIs] Re: gadget state unavailable in onload handler

2009-11-16 Thread \x00
html, head, body tags should be stripped. -- 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 APIs] Re: GADGET_STATE_CHANGED (Preview) does not fire

2009-11-16 Thread cmdskp
GADGET_STATE_CHANGED does not exist currently - but has been mentioned by Google as coming in a future version of the API, AFAIK, this hasn't been released yet. Possibly I read about it on the Wave API Issues. On Nov 16, 9:58 pm, qMax qwigly...@gmail.com wrote: And GADGET_STATE_CHANGED is not

[Google Wave APIs] Re: Is Google Gadgets Editor faulty?

2009-11-16 Thread Sam Bender
I still couldnt get it to work with chrome, Firefox or IE even after manually adding the space. I tried doing it the SVN way but when I actually added the gadget to wave it showed an broken image. I copied the exact code from google and it still didn't work.

[Google Wave APIs] Cannot walk up Parent chain in Java

2009-11-16 Thread Olreich
The Java API has the Blip.getParent() function. When this is called, the returned blip does not have the ability to getParent() again it seems. or, at the least, one cannot continue walking without hitting null on the second trial. The same rings true when using isParentAvailable() to check for

[Google Wave APIs] Can a Robot add a file in a wavelet ?

2009-11-16 Thread Bruno Marchesson
Hi all, I am trying to develop a Robot that adds a file to a wavelet, based on input expression. Drag and dropping file to a wave works fine, but I cannot find a way to do it from the Extension API (only adding images or gadgets seems to be supported). Can somebody help me ? Regards Bruno --

[Google Wave APIs] Re: multiple gadgets sharing state

2009-11-16 Thread Jacco
I think currently communicating from robot to gadget is not possible? The gadget.setField does not change the state of the gadget in my tests. Regards, Jacco On 12 nov, 16:48, just marvin marvin.greenb...@gmail.com wrote: It occurs to me that since you'll need a bot and a gadget, you could

[Google Wave APIs] Re: Gmail and Wave

2009-11-16 Thread cfernandez
+1 will be nice. On Nov 15, 9:38 pm, Jo hyphen el johyphe...@gmail.com wrote: Anyone know if there any plans to integrate Wave into Gmail (or vice versa)? Just thinking it would be nice to view your email and email 2.0 from the same inbox.. Just curious. Jo-el -- You received this

[Google Wave APIs] How to set Gadget user prefs in a Wave?

2009-11-16 Thread Will Ware
My Gadget is working fine in iGoogle and Blogspot, and I can set the user prefs. But I haven't found a way to set the user prefs in Wave. What's the trick? -- 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 APIs] Re: New to Google Wave

2009-11-16 Thread alexis
I'll add you, because I'm sadly lacking in people to test this with too. On Nov 14, 12:30 pm, David Cummins dwcumm...@googlemail.com wrote: Hello, Could you add me please to: dwcumm...@googlewave.com Regards D Cummins -- You received this message because you are subscribed to the Google

[Google Wave APIs] Re: Moving waves into folders with API

2009-11-16 Thread Olreich
Lol, I just submitted a feature request for that yesterday xD http://code.google.com/p/google-wave-resources/issues/detail?id=462 On Nov 17, 1:03 am, jhb barr.j...@gmail.com wrote: Thanks for the discussion.  I created a feature request and added some of the ideas discussed.

[Google Wave APIs] Re: newwavemenu createNewWave insertGadget

2009-11-16 Thread Olreich
The only thing that I can think of is inserting a robot that inserts a gadget. That's a first guess, as I've had little to do with gadgets as of yet. On Nov 16, 11:41 am, Andy andyd...@gmail.com wrote: I'm trying to build a manifest that will put an item into the new wave menu that will create

[Google Wave APIs] Re: GADGET_STATE_CHANGED (Preview) does not fire

2009-11-16 Thread hcvst
Somehow I missed that it's a draft only. I thought the protocol already supported it, so I just added the event to the Python client lib in waveapi.events. I guess I will have to listen for other events and incur the additional traffic load for now. Which event should one use: BLIP_SUBMITTED,

Re: [Google Wave APIs] Moving waves into folders with API

2009-11-16 Thread Adam Ness
I don't think Robots could ever be expected to be capable of moving items into folders, since they're just another Participant on the wave, and the folders belong to other participants. Possibly a Gadget API would be a better place for this, or maybe a new client plugin API, to allow users to

[Google Wave APIs] Re: Moving waves into folders with API

2009-11-16 Thread Olreich
The problem is that Robots can create a mass of waves, but can't organize it very well for the user, so the user wouldn't want a robot to do anything outside of the wave, but rather operate entirely within. Allowing robots to organize themselves would be expand them outside of a wave-by-wave basis

[Google Wave APIs] Re: Unable to register event handlers for all events except WaveletSelfAdded

2009-11-16 Thread Sri
Okay, thanks that fixed it. This is a very weird bug in the Python API. .RegisterHandler (events.WAVELET_SELF_ADDED, OnRobotAdded) must always be the last to be defined. :-/ - Sri On Nov 16, 5:22 pm, onlythoughtwo...@googlemail.com onlythoughtwo...@googlemail.com wrote: Hi, i had the same