I'm trying to access data that ODK has pushed into the datastore. The below
code words fine when I query an entity that I created via Python, which was
called "ProductSalesData". The entity name ODK has given it's data is
"opendatakit.test1". When I update the data model to class
opendatakit.test1(db.Model) it obviously bombs due to a sytax error. Any
ideas on how to access the ODK data? Thanks
#!/usr/bin/env python
> import webapp2
> from google.appengine.ext import db
>
> class ProductSalesData(db.Model):
> product_id = db.IntegerProperty()
> date = db.DateTimeProperty()
> store = db.StringProperty()
> q = ProductSalesData.all()
>
> class simplequery(webapp2.RequestHandler):
> def get(self):
> for ProductSalesData in q:
> self.response.out.write('Result:%s<br />' % ProductSalesData.store)
>
>
> app = webapp2.WSGIApplication(
> [('/', simplequery)],
> debug=True)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.