[Python] Event Properties

1 view
Skip to first unread message

MaLKaV_eS

unread,
Aug 26, 2009, 11:23:46 AM8/26/09
to Google Wave API
Hi,
I know this is a kind of dumb question to ask, but... is any document
there that list all keys for event properties list? I have tried
looking at the source code, but I don't know where to look.

As I'm just new to python, and don't know if key is the correct word,
I'm talking about ['blipId'] like in this example:

def OnBlipSubmitted(properties, context):
"""Invoked when the blip has been added."""
blip = context.GetBlipById(properties['blipId'])
contents = blip.GetDocument().GetText()

Thanks!

Jason Salas

unread,
Aug 26, 2009, 5:51:34 PM8/26/09
to google-...@googlegroups.com
Hi there,

Unfortunately, because this is the Developer Preview there isn't
documentation right now about all the properties available. However,
the good news is that you can look in the logs that Google App Engine
generates for your robot in your dashboard (choose Info from the
drop-down menu under your application), and you can manually read the
JSON string and get the "properties" content. I've tried to
programmatically print this collection out to the screen, but I got a
Python error reading something like "too many elements". But, it is
possible.

Jason :)

Gold Loki - www.forgottenprojects.com

unread,
Aug 27, 2009, 2:01:29 AM8/27/09
to google-...@googlegroups.com
I was afraid of something like this... I've tried to save them to datastore, but something like that happens too.
Well, I'll try to get the info from logs as you suggested.
Thanks

2009/8/26 Jason Salas <digitalpon...@gmail.com>
Reply all
Reply to author
Forward
0 new messages