Re: [Google Wave APIs] Synchronous HTTP requests

2009-12-17 Thread David Nesting
On Tue, Dec 15, 2009 at 9:50 AM, Martin Kreichgauer < kreichga...@googlemail.com> wrote: > that this is not particularly good design, but rewriting the client > code in a way that the requests are performed asynchronously is > currently not an option. :-/ Is there any way to make > I'm not aware

Re: [Google Wave APIs] Re: Robots Storing Session Data

2009-12-13 Thread David Nesting
On Sun, Dec 13, 2009 at 8:24 AM, Stephen George wrote: > I would recommend storing it in the wave - within the gadget's state. > This makes it easy for you to easily share user scores with all > participants, and even "playback" the score history through the game. > But it also permits participa

Re: [Google Wave APIs] Re: Gadget API needs a bit of help?

2009-12-11 Thread David Nesting
On Wed, Dec 9, 2009 at 7:30 PM, dougx wrote: > Anyway, basically you can get around the authenticity problem by using > RSA to sign the state data in the gadget, to ensure the state is > valid. > This ensures authenticity, but not integrity (the user controls the browser, so they can get valid s

Re: [Google Wave APIs] Gadget API needs a bit of help?

2009-12-09 Thread David Nesting
On Sun, Dec 6, 2009 at 11:59 PM, dougx wrote: > - Competative game gadgets, where users can gain an advantage by > faking their own high score. > > - Gadgets where users collaborate in general (prone to spoofing; even > on playback you can't really be sure of the changes being made coming > from

Re: [Google Wave APIs] Google Wave Gadget persistence layer

2009-12-09 Thread David Nesting
On Tue, Dec 8, 2009 at 10:36 AM, Jiang, Guoqian, Ph.D. < jiang.guoq...@mayo.edu> wrote: > My use case is that I want to reprensent a tree structure in a google > wave gadget and a group will work collaboratively on curating the tree > structure e.g. editing a node, adding a sub node or deleting

Re: [Google Wave APIs] unresponsive bot and blank xml capabilities after following Python bot tutorial

2009-12-09 Thread David Nesting
On Sun, Dec 6, 2009 at 5:52 PM, George Oliver wrote: > nothing. I see no debug/info/etc. logs, but I do see activity in the > This is immediately suspicious to me. Every request should be generating some debug logging. I'd try adding some logging statements of your own in various places to see

Re: [Google Wave APIs] Re: State change

2009-12-06 Thread David Nesting
On Sun, Dec 6, 2009 at 12:23 AM, Avital Oliver wrote: > Gadgets are executed in iframes with variable domains (something like > *-opensocial.google.com where * can be any number). Cookies are stored > on a per-domain basis, so you may or may not be able to read the > cookie you stored once you op

Re: [Google Wave APIs] Re: Grabbing Gadget State and Saving for use in another function with python

2009-12-06 Thread David Nesting
On Sat, Dec 5, 2009 at 11:05 PM, Cory Thompson wrote: > What I am aiming to do is to grab the state from my gadget once the > gadget is updated and I need to use that collected value when a blip > (besides the blip with the gadget) is submitted. This sounds like a > So basically you're looking fo

Re: [Google Wave APIs] Returning different Blipid for same blip with different function

2009-12-05 Thread David Nesting
On Sat, Dec 5, 2009 at 1:27 PM, shitu wrote: > I used 2 functions to get blipid (just writing skeleton) > > 1. Blip blip; >blip.getBlipid(); > > Output something like this: TBD0.7681968809059604 > Are you doing this when you create the blip initially? If so, these "TBD" IDs are only tempora

Re: [Google Wave APIs] Re: Delete a wave

2009-12-05 Thread David Nesting
On Sat, Dec 5, 2009 at 1:01 AM, fabrizio-mc wrote: > 2) we assume that all partecipants have same rights on the wave (I > prefer this solution): > I prefer this too. Just because someone was first to create the wave shouldn't grant them the power to destroy everyone else's work. > Each partec

Re: [Google Wave APIs] State change

2009-12-05 Thread David Nesting
On Fri, Dec 4, 2009 at 2:58 AM, Mojo wrote: > What I need here is a way to save the individual's bookmark setting > without triggering that "updated" action for everyone else. I imagine > Can gadgets write browser cookies? What if you saved this state in a server-side data store (wherever your g

Re: [Google Wave APIs] Grabbing Gadget State and Saving for use in another function with python

2009-12-05 Thread David Nesting
On Thu, Dec 3, 2009 at 5:31 PM, Cory Thompson wrote: > gadget = blip.GetGadgetByUrl('url here') > > if gadget: > stateOutput= gadget.get('stateKey') > > stateOutput holds that data I need it to hold although the problem is > that I need to use this data in another function. Any idea's on how I >

Re: [Google Wave APIs] Re: Providing configuration for the robot and communicating with the outside world

2009-12-05 Thread David Nesting
2009/12/4 Filip Gruszczyński > This seems as a good idea - hg configuration widget coupled with a > robot. I hope all of this is possible there :-) I think there are a few robots in the samples gallery that do this. I'll add my usual caveat here that if you need a gadget to collect sensitive d

Re: [Google Wave APIs] Re: Text replacement with annotations

2009-12-05 Thread David Nesting
On Thu, Dec 3, 2009 at 11:34 PM, frak wrote: > expected). So barring anyone telling me that there is an issue with > the approach I have taken (please feel free to comment David!) then I > shall consider my work done (for this part anyway)! > I think the strike-out appearance is normal (it's sh

Re: [Google Wave APIs] Re: Storage of Waves?

2009-12-03 Thread David Nesting
On Thu, Dec 3, 2009 at 7:30 AM, artanck wrote: > On a similar subject, does anyone know how Waves are stored on the > server? Is it like each Wave is in xml format, and then each of them > stored as a file in say a mysql database? > With Google Wave, I'm sure it's stored in a manner that's tight

Re: [Google Wave APIs] Text replacement with annotations

2009-12-03 Thread David Nesting
On Wed, Dec 2, 2009 at 4:48 PM, frak wrote: > I currently have a robot that makes replacements to text over an > entire blip, and I am doing a replaceAll over the getDocument().getText > () that is returned from the blip. However, when I do this, any > annotations (such as links, bold text etc)

Re: [Google Wave APIs] Re: Providing configuration for the robot and communicating with the outside world

2009-12-03 Thread David Nesting
2009/12/3 Raphaël Pinson > In my case, I currently use a language to speak to the bot. Many bots > do that, for example you could have > > This is a really bad idea, because the username and password are retained in the wave's history and can be easily discovered later through playback (or obse

Re: [Google Wave APIs] Set blip date in Pyhton

2009-12-03 Thread David Nesting
On Tue, Dec 1, 2009 at 3:54 AM, pamela (Google Employee) < pamela...@gmail.com> wrote: > "contentcreationtime" and the value should look like "1249309218000" > (Unix time) > Technically, based on your example, this would appear to be standard Unix time *in milliseconds*, which isn't normally how

Re: [Google Wave APIs] 500 Internal Server Error

2009-12-03 Thread David Nesting
On Tue, Dec 1, 2009 at 9:23 AM, phoebebright wrote: >result = urlfetch.fetch(url=url, payload=postdata, >method=urlfetch.POST, >headers={'Content-Type': 'application/x- > www-form-urlencoded'}) > >root_wave

Re: [Google Wave APIs] Authorized google wave gadget viewer

2009-11-24 Thread David Nesting
On Tue, Nov 24, 2009 at 8:51 AM, David Nesting wrote: > your only options at this point are to keep the interactions/data entirely > within Wave, or authenticate the user wholly > Actually, it occurs to me that this isn't entirely secure either. The API doesn't allow gadgets

Re: [Google Wave APIs] Robot Request - text locker

2009-11-24 Thread David Nesting
This sounds easily achievable with a robot. For each event, the robot checks to see if the edit is authorized, and if not, reverts it to the last known authorized edit. The caveats: 1. Depending on which blips you want to lock, the robot may need to be added prior to an authorized edit, for it t

Re: [Google Wave APIs] can I create a new text file hrough Wave Robot

2009-11-24 Thread David Nesting
What do you mean by "a new text file"? Do you mean a new wave/wavelet/blip? A text file attachment to a wavelet? A text file on the user's computer? On Tue, Nov 24, 2009 at 12:19 AM, chetan rana wrote: > hi.. > I want to create a new text file through a wave robot. But seems it > is not poss

Re: [Google Wave APIs] Authorized google wave gadget viewer

2009-11-24 Thread David Nesting
On Mon, Nov 23, 2009 at 12:59 AM, Solvek wrote: > really from this specific wave user? (how can I approve that wave's > participant id is not hacked on the client side? This is a hard problem, and Wave does not make it easy to authenticate users or events. The only option I'm aware of is for y

Re: [Google Wave APIs] Is there a way to store gadget data just for the viewer?

2009-11-21 Thread David Nesting
On Fri, Nov 20, 2009 at 8:51 AM, Jamal Fanaian wrote: > passed is authenticated. I thought of possibly using Google's User API > in AppSpot, but then that would only work for Google Wave and not for > any other wave servers. > What User API are you referring to? The only API I'm familiar with i

Re: [Google Wave APIs] Re: Gadget with a Database

2009-11-19 Thread David Nesting
On Thu, Nov 19, 2009 at 10:28 AM, Samuirai wrote: > Gadget URL: http://wave.samuirai.de/ajax.xml > I get an encoding error when I try to bring up that page, and my browser fails to display it as a result. Your web site also appears to be denying requests to command-line HTTP clients, which is a

Re: [Google Wave APIs] Re: Google Wave website editor?

2009-11-19 Thread David Nesting
with CS4. A WYSIWYG > editor would be good, but doesn't exactly leverage the abilities of > wave from what I can tell. > > On Nov 19, 12:49 pm, David Nesting wrote: > > On Thu, Nov 19, 2009 at 9:04 AM, Jason Livesay > wrote: > > > in a Wave. I just wanted t

Re: [Google Wave APIs] Gadget with a Database

2009-11-19 Thread David Nesting
On Thu, Nov 19, 2009 at 9:12 AM, Samuirai wrote: > I need a Database to store Data. What data do you need to store there? Could you store it in the wave itself? The wave gadget's tutorial describes this: http://code.google.com/apis/wave/extensions/gadgets/guide.html > I Tryed an AJAX reques

Re: [Google Wave APIs] Re: Google Wave website editor?

2009-11-19 Thread David Nesting
On Thu, Nov 19, 2009 at 9:04 AM, Jason Livesay wrote: > in a Wave. I just wanted to mention again that I personally would put more > effort into the gadget and WYSIWYG side of things than to the robot and > markup side of things. I feel So, I don't mean to dissuade anyone from working on thin

Re: [Google Wave APIs] Re: Gmail and Wave

2009-11-18 Thread David Nesting
On Tue, Nov 17, 2009 at 7:15 PM, Olreich wrote: > interface was completely in the terminal). But first, the Wave > protocol will probably need to be completed or at least relatively > stable, so that a new version does not need to come out every few > days. > > Google, of course, will not do this

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 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 I can't find such f

Re: [Google Wave APIs] Re: Securing Ajax endpoints

2009-11-14 Thread David Nesting
Even robots are vulnerable to spoofed events. A robot is just an HTTP resource running in appengine. The wave server sends an HTTP request to the robot, and the robot returns the wave operations it wants to perform in the HTTP response. There's no way currently for the robot to be certain that t

[Google Wave APIs] Re: Google Wave Data API

2009-11-09 Thread David Nesting
On Mon, Nov 9, 2009 at 2:04 PM, Oliver Baker wrote: > PLEASE DO NOT POST THE FIRST REPLY IF IT IS NOT AN ANSWER, I DON'T > WANT TO ANSWER TO BE 20 REPLIES DOWN! > > P.S: The FIRST REPLY must be an Answer, not an opinion (e.g: "Yeah > when will it come out" (Not that)) > Seriously? --~--~-

[Google Wave APIs] Re: Embedding Waves in Blogs and Search Engines

2009-11-09 Thread David Nesting
I'm not attacking the idea at all. Like I said, I'm working on the same thing, so I'd love to hear your ideas on some of these. On Mon, Nov 9, 2009 at 11:05 AM, Christopher Baker wrote: > 2. Use a gadget that goes with the robot (can the robot add it?) that you > can fill in information (maybe e

[Google Wave APIs] Re: Embedding Waves in Blogs and Search Engines

2009-11-09 Thread David Nesting
On Sun, Nov 8, 2009 at 11:52 PM, Christopher Baker wrote: > Personally, I think that the blogs with waves embedded in them look rather > funny, even with matching colors. I would think that the best option would > be to create a robot that updates the blog based on the wave content. I plan > on fi

[Google Wave APIs] Re: Incrementally add text to a blip

2009-11-07 Thread David Nesting
On Sat, Nov 7, 2009 at 7:14 PM, Daniel Rothenberg wrote: > adding text to the document it's working in, but I've noticed that it > doesn't look like Wave is updating the document until after > OnBlipSubmitted() completely finishes. > Robot events are simply HTTP requests. The wave server makes a

[Google Wave APIs] Re: Serving a dynamic gadget from the robot app

2009-11-07 Thread David Nesting
This seems pretty straightforward to do within appengine. Rather than serve a static XML document from a static_dir or static_files handler, serve it from a script. The script could accept query or path parameters to customize the XML it emits. If you need details, what language are you working

[Google Wave APIs] Re: Google Session Access

2009-11-07 Thread David Nesting
On Sat, Nov 7, 2009 at 2:54 AM, karthik k wrote: > Can i access the google session ID of the current user or can i get the > auth token of the google account from wave? > I wanted to use some google's service with the wave which needs an > authentication. > Is there any other way i can get its acc

[Google Wave APIs] Re: [python]Value form in gadget to robot

2009-11-07 Thread David Nesting
t; Michał > > 2009/11/7 David Nesting > >> 2009/11/7 Michał Gołębiowski >> >> My robot post login and password to another server... like tweety. >> >> >> Tweety uses OAuth, precisely to avoid having to directly use someone's >> username a

[Google Wave APIs] Re: [python]Value form in gadget to robot

2009-11-07 Thread David Nesting
2009/11/7 Michał Gołębiowski > My robot post login and password to another server... like tweety. Tweety uses OAuth, precisely to avoid having to directly use someone's username and password. The gadget itself never sees the user's credentials. > Can you write more about connecting robot wit

[Google Wave APIs] Re: [simple?] connect my googlegroups to googlewave

2009-11-07 Thread David Nesting
On Fri, Nov 6, 2009 at 11:00 AM, Nil wrote: > I was just wondering if connecting my google groups to my google wave > has been done yet. Aslo, is anyone seeing groups migrate over to a > What do you mean by connecting? If you're talking about using groups as a way to add people to waves, this

[Google Wave APIs] Re: [python]Value form in gadget to robot

2009-11-07 Thread David Nesting
On Fri, Nov 6, 2009 at 8:53 AM, Golabek wrote: > Hi, I want to know how to get value of textboxes in godget to robot. > Gadget have 2 bextboxes, login and password, I want to get this value > to robot who log to server > Gadgets can pass state to robots one of two ways: 1. Through the wave. 2.

[Google Wave APIs] Re: Best way to store a 3rd party license key

2009-11-05 Thread David Nesting
This sounds like what OAuth was designed to solve. That being said, since your robot is certainly implemented on appengine, you have the local appengine data store available to store user credentials. Obviously, don't store sensitive information in the wave itself. Keep in mind that wave events

[Google Wave APIs] Re: capabilites.xml is blank

2009-11-02 Thread David Nesting
On Mon, Nov 2, 2009 at 10:07 AM, Calum wrote: > http://dl.getdropbox.com/u/1347058/src.rar > > I am counting on this being due to a stupid mistake. Many thanks to > whoever can help! > if __name__ == '__main__': myRobot = robot.Robot('The Calum Scott Bot', image_url='http://thecalumscott

[Google Wave APIs] Re: Automatic annotations to .pm, .py, etc.?

2009-11-02 Thread David Nesting
On Sun, Nov 1, 2009 at 6:58 PM, dougx wrote: > I'm having an odd issue where when I add certain text strings to a > wave they automatically get annotations attached to them. > This sounds like Linky, seeing a pattern that looks like a URL or a hostname, and automatically adding a link annotation

[Google Wave APIs] Re: Suggestions for Wave Gadget API

2009-11-01 Thread David Nesting
On Sun, Nov 1, 2009 at 3:00 AM, pamela (Google Employee) < pamela...@gmail.com> wrote: > in view mode, but we expect that we may enforce that gadgets can only > change state when the entire blip is in edit mode. > If the motivation behind this is to ensure privacy, keep in mind that the gadget ca

[Google Wave APIs] Re: capabilites.xml is blank

2009-10-31 Thread David Nesting
Can you give us a link to it? If you're running this in appengine, do the appengine logs give you any hints as to what might be happening? David On Fri, Oct 30, 2009 at 6:42 AM, Calum wrote: > > Does no one have any reason why this happens? It's still a blank XML > file. > > On Oct 19, 12:13 a

[Google Wave APIs] Re: php support.

2009-10-31 Thread David Nesting
On Fri, Oct 30, 2009 at 1:52 AM, wrote: > hi > the link dose not work > The Wave API project is in Google Code at: http://code.google.com/p/google-wave-resources/ Click on the Issues tab at the top to get the bug system. You can search this for "PHP" to locate the bug you're interested in. Da

[Google Wave APIs] Re: Arranging Embeded Waves

2009-10-31 Thread David Nesting
The embed API lets you take a wave, and place it on your own web page. There's no reason you can't do this with as many waves as you want, presented in any way that you want. Each embedded wave is independent of the others (they're embedded as iframes). David On Thu, Oct 29, 2009 at 10:08 PM, E

[Google Wave APIs] Re: Theme for Gadgets?

2009-10-31 Thread David Nesting
Gadgets are sandboxed in their own IFRAME. Any CSS you attempt to apply would only affect the content within the gadget, not Wave as a whole. But otherwise, sure, you could theme your own gadget, just like you can theme any other web page. On Tue, Oct 27, 2009 at 9:35 PM, Eric Dorman wrote: >

[Google Wave APIs] Re: Less frequent updating

2009-10-31 Thread David Nesting
On Tue, Oct 27, 2009 at 10:21 PM, voidref wrote: > For my syntax highlighting bot, I want the highlighting to be while > typing is happening, however getting a notification on every character > input will be a serious problem for bandwidth and processing. I don't believe you'll receive events f

[Google Wave APIs] Re: Where are the robot icons?

2009-10-25 Thread David Nesting
On Sun, Oct 25, 2009 at 10:45 AM, voidref wrote: > Is there some way, in appspot, to see a listing of the files that made > it up there? > I'm not aware of such a thing, but I'm not an expert on appengine. > Even if I just try and use the URL where I expect the icon to be, it > 404s. > What d

[Google Wave APIs] Re: Can't seem to delete/trash a wave

2009-10-25 Thread David Nesting
On Sun, Oct 25, 2009 at 10:56 AM, voidref wrote: > Deleting waves does not appear to work yet, I have had to mark them as > spam, and them Mute them. > I guess you gotta do what you gotta do, but I would be concerned that this would introduce noise into the spam filtering Wave uses (or may use i

[Google Wave APIs] Re: Showing different content in the same Wave?

2009-10-25 Thread David Nesting
Anything sent via state changes to the wave is visible to everyone. You could do either of the following: 1. Use a gadget that communicates directly with your app to discuss the "sensitive" aspects of your gadget/app (which cards the user was given), and the server-side app would then be the excl

[Google Wave APIs] Re: HowTo: Make a robot create a new Wave (Python)

2009-10-25 Thread David Nesting
On Sun, Oct 25, 2009 at 6:25 AM, yariv.snapir wrote: > produced the type of ID I need... (I got 'TBD0.8622343911850655' where > the ID needed looks more like: 'w+iFA2MNGuP'... I wonder what is the\ > The methods you use to respond to an event notification do not have immediate results. The opera

[Google Wave APIs] Re: Embedding Wave on Blogger

2009-10-25 Thread David Nesting
On Sun, Oct 25, 2009 at 6:24 AM, Eric Dorman wrote: > I tried this and even when I removed the comments it still did not > work in Blogger. > Can you provide more information? What exactly did you try, and what was the result? Did Blogger strip out HTML tags or scripting? > Does anyone know

[Google Wave APIs] Re: GadgetSubmitDelta right after append new gadget (python)

2009-10-19 Thread David Nesting
On Mon, Oct 19, 2009 at 3:26 AM, Agustin Horischnik wrote: > doc.AppendElement(document.Gadget(GADGET_URL)) > > gadget = blip.GetGadgetByUrl(GADGET_URL) > if gadget: >delta = { 'name' : 'joe' } >doc.GadgetSubmitDelta(gadget, delta) > > ... but gadget in "if gadget" tests false. It makes se

[Google Wave APIs] Re: Python & Robot API - Annotating Blips

2009-10-18 Thread David Nesting
On Sun, Oct 18, 2009 at 5:54 PM, atc wrote: > What other annotations are available? Where do I get the valid names > from?! > I haven't found a good authoritative source, but my own experimentation has yielded the following (self-explanatory?) annotations, just from styling text in the editor:

[Google Wave APIs] Re: Python & Robot API - Annotating Blips

2009-10-18 Thread David Nesting
On Sun, Oct 18, 2009 at 10:15 AM, atc wrote: >doc = wavelet.CreateBlip().GetDocument() >doc.AnnotateDocument(Annotation("link/manual", "http:// > www.google.com", Range())) >doc.SetText("THIS IS ANNOTATED TEXT") > As I said, I just end up with a bla

[Google Wave APIs] Re: Escape blip document content when using SetText()?

2009-10-18 Thread David Nesting
I filed this as a bug a week or two ago, and I believe a fix should be coming soon. There's no useful workaround that I've found, aside from replacing instances of < and > with something else, like [ and ]. When I tried to use HTML entities instead, the blip ended up containing the literal entity

[Google Wave APIs] Re: Using non-standard URIs with setAnnotation()

2009-10-18 Thread David Nesting
On Sun, Oct 18, 2009 at 11:11 AM, Matt Prigge wrote: > > example link might look like this: "showinfo:5//30004099" and the JS > function call looks like this: "javascript:CCPEVE.ShowInfo(5, > 30004099);" (both do the same thing - the first one is a bastardized > old version - the JS is the new ver

[Google Wave APIs] Re: Robot state persists

2009-10-18 Thread David Nesting
On Sun, Oct 18, 2009 at 9:57 AM, Smola wrote: > I need a way for information my robot gathers to persist. So, let's > say I want to find a blip and save its ID so I can work with it in the > future. I don't know how to do that currently. I know how to find > the ID of a blip, but I do I save i

[Google Wave APIs] Re: Gadget - css and element ID isolation.

2009-10-18 Thread David Nesting
On Sun, Oct 18, 2009 at 9:15 AM, Chris Searle wrote: > It struck me - if there are two instances of a given gadget how is > this handled? Are IDs unique only within the gadget, within the > containing blip, wavelet or whole wave? > The gadgets are rendered in their own IFRAME, so they are complet

[Google Wave APIs] Re: Does /_wave/robot/profile get called on the preview instance?

2009-10-18 Thread David Nesting
On Sun, Oct 18, 2009 at 7:38 AM, Dominic Lovell wrote: > Is this feature turned off on the preview instance? And if so, is > I've noticed in the last week or so that none of the robots seem to have names/avatars anymore. I suspect this is a more global problem (bug?) that only recently started

[Google Wave APIs] Re: Using external libraries in a python bot

2009-10-17 Thread David Nesting
On Sat, Oct 17, 2009 at 2:12 PM, Raphink wrote: > bot on my own machine (not even for test purposes), but I doubt > appspot has the sword library and sword modules installed. This is more of an appengine question, at least until the APIs evolve to the point where we can run robots elsewhere, bu

[Google Wave APIs] Re: Gadget shared state question

2009-10-17 Thread David Nesting
On Sat, Oct 17, 2009 at 1:43 PM, maxsap wrote: > Hello to all, I have a question about the gadget api. > the gadget has shared state wright? this means that if i make a > playback gadget and some user in a wavelet plays a file from that > gadget all the users in the wavelet will hear the sound?

[Google Wave APIs] How to authenticate wave users?

2009-10-17 Thread David Nesting
I'm experimenting with a robot that I would like to hold an OAuth token for a user. Ideally, once the setup is done, the user should be able to simply add the robot as a participant in a wave, and the robot should be able to use its existing, stored token to do something useful. The problem I'm