Serving a dynamic gadget from the robot app

0 views
Skip to first unread message

Flavio Coelho

unread,
Nov 7, 2009, 9:44:07 AM11/7/09
to Google Wave API
Hi I want to serve a gadget which I modify according to data collected
by the robot. So I want to generate the gadget XML dynamically and
serve at using the same app for example at myrobot.appspot.com/gadget/

I haven't figured out how to do this.

any ideas?

David Nesting

unread,
Nov 8, 2009, 2:05:50 AM11/8/09
to google-...@googlegroups.com
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 in?

David

pamela (Google Employee)

unread,
Nov 8, 2009, 5:54:15 PM11/8/09
to google-...@googlegroups.com
I believe the IMDBotty sample does something like that, using the Python SDK and Django templates:

- pamela

hcvst

unread,
Nov 9, 2009, 9:13:03 AM11/9/09
to Google Wave API
Hi Flavio,

let your bot add the gadget and include some query-string parameters
such as
the wave-id when it does, so that you can correlate in subsequent
requests on that
id.

I've used that approach for my wavedirectory.net. Source available at
github.
http://example.com/gadget.xml?waveid=id

Regards,
HC
Reply all
Reply to author
Forward
0 new messages