Vizguy

I am using the same code one works if I use the app.yaml to redirect
to the viz.py file

while the other fails where the code is part of the mainapp and
dispatched using a requesthandler

Following is the code  with some fields masked by xx


class XX(webapp.RequestHandler):
        def get(self):
  # Creating the data
                description = {"name": ("string", "Name"),
                 "city": ("string", "City")}
                xx_query = xx.all()
                xx = xx_query.fetch(10)
                data = []
                for xx in xx:
                        data = data +[{"name":xx.name, "city":xx.city}]

                #Loading it into gviz_api.DataTable
                data_table = gviz_api.DataTable(description)
                data_table.LoadData(data)

                print "Content-type: text/html"
                print
                print data_table.ToJSonResponse(columns_order=("name", "city"),
                                        order_by="city")


Also any thoughts on easy url parsing for the datasource to handle
queries passed to the vizualization data source.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to