Re: [Google Wave APIs] Re: Accessing a blip from a different context/wave

2009-11-25 Thread Avital Oliver
We have been developing similar robots. This has to do with the underlying
robot protocol - all it does it send a list of events that happened on the
wave and read back a list of operations. The event bundle, as its called,
which is sent only contains the data about the wave that has been modified
(and even not all blips in there).

The only way to do something like this is to have the robot save the state
of the configuration wave in a DB when you get events on that wave and then
read from that DB when events occur on the "real" wave.

--
http://blog.thewe.net
http://twitter.com/theWE_



On Wed, Nov 25, 2009 at 10:05 AM, Paolo Tell  wrote:

> First of all thanx for your reply but let me summarize it just to
> understand if i got it right.
>
> If a robot is partecipating in two waves (one of which even created by
> himself), he cannot access data contained in wave B in response to an event
> fired in wave A (clearly knowing the id of the wave/wavelet/blip).
>
> My attempt is to use a personalized wave as a 'configuration file' for
> every single user partecipating to a wave having the robot as member. The
> infrastructure would allow this easily but a method like
> Load() is missing imho. Such a
> method would let the contex passed in events to be enriched upon need.
>
> Any tips on how or confirmation that it is not possible to realize it?
> Paolo
>
>
>  --
> 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-api+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>

--

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-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.




Re: [Google Wave APIs] Re: Accessing a blip from a different context/wave

2009-11-25 Thread Paolo Tell
First of all thanx for your reply but let me summarize it just to understand
if i got it right.

If a robot is partecipating in two waves (one of which even created by
himself), he cannot access data contained in wave B in response to an event
fired in wave A (clearly knowing the id of the wave/wavelet/blip).

My attempt is to use a personalized wave as a 'configuration file' for every
single user partecipating to a wave having the robot as member. The
infrastructure would allow this easily but a method like
Load() is missing imho. Such a
method would let the contex passed in events to be enriched upon need.

Any tips on how or confirmation that it is not possible to realize it?
Paolo

--

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-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: Accessing a blip from a different context/wave

2009-11-24 Thread Olreich
Looking at the structure of the Python API, it appears that context is
a variable that is specific to a certain request, to act upon that
request, you would need to pass the context variable off to the other
instances of the Robot in some fashion. If you can achieve that, then
just grab the right context variable and do a context.GetBLipById
(["blipId"]).GetDocument().

I don't know how you would go about doing that, or even if it would
work if you managed to pass context around, but your best bet is
probably the persistence implementation for python, and saving and
loading context variables in the datastore.

Good luck on your inter-wave application.

On Nov 23, 4:14 am, Paolo Tell  wrote:
> As title: I would like to access data contained in a blip from a different
> wave.
> Let's say I have an event from wave A and i want to read data from blip Z
> contained in wavlet Y which is part of wave X. I have all the ids of X,Y,Z
> but I cannot figure out how to get the data out of blip Z.
> I mean something like:
> context.GetWaveById(id["waveId"]).GetWaveletById(["waveletId"]).GetBlipById 
> (["blipId"]).GetDocument()
>
> Is there a way to create a context containint the given blip which would
> permit the use of GetBlipById()?
> Is there a method I am missing?
> Any tips?
>
> Ty in advance
> Paolo

--

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-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.