Questions tagged [gqlquery]

129 questions
0
votes
1 answer

How to specify ID greater than in the where clause?

Just recently tried something like the following in the appengine interactive console: from google.appengine.ext import db from django.utils import simplejson class TestDb(db.Model): author = db.StringProperty() def add(name): t =…
deostroll
  • 11,661
  • 21
  • 90
  • 161
0
votes
1 answer

Simple data storing / retrieving in GQL on Google AppEngine in Python

I have a problem which probably is a result of me not understanding how GQL works (this is my first day with it). I'm working on Google AppEngine (locally now) using google.appengine.ext.db data storage. I'm simply creating a user with certain ID…
michuk
  • 1,332
  • 1
  • 13
  • 19
0
votes
1 answer

Why use PostalAddress property in Gql?

Possible Duplicate: Why Email, Username, PostalCode, etc as entities in GAE Datastore App Engine Data store has this property "PostalAddress" but what is the purpose of using it? Here it is in the docs:…
user772401
  • 2,754
  • 3
  • 31
  • 50
0
votes
1 answer

Get Key in property List using GQL

I am developing a Python app using Google App Engine. I want to retrieve property list from an entity along with the key. I am using the code below recs = db.GqlQuery('select __key__,content from FileHistory') but I am not able to get the key…
Saqib
  • 2,470
  • 3
  • 19
  • 32
0
votes
1 answer
0
votes
2 answers

Simple App Engine Query Invalid

I'm getting an 'Invalid GQL query string' with this seemingly trivial GQL query: SELECT * FROM Event WHERE firstPlayer='glowingEthers' OR secondPlayer='glowingEthers' It works fine when the OR clause is removed, for either property. These…
benjammin
  • 537
  • 5
  • 23
0
votes
1 answer

Querying datastore: 'NoneType' object has no attribute

When I run this if block: first_query = db.GqlQuery("SELECT * FROM Contract ORDER BY date DESC").get() if first_query == None: numBook = 42 numInitialPage = 42 numFinalPage = 42 first_record = Contract(book_number…
craftApprentice
  • 2,697
  • 17
  • 58
  • 86
0
votes
1 answer

Unexpected empty results of GQL Query

Surprisingly, after having done a lot of queries without problem. I've run into the first strange GQL problem. Following are the properties of a model called Feedback: content date title type votes_count written_by and following are…
MrCooL
  • 926
  • 3
  • 15
  • 30
-1
votes
1 answer

How to query the last element in a database class in Gql (Google Query Language)?

I have this database in GAE: class Contract(db.Model): # I renamed "Act" as "Contract" book_number = db.IntegerProperty(required = True) initial_page = db.IntegerProperty(required = True) final_page = db.IntegerProperty(required = True) …
craftApprentice
  • 2,697
  • 17
  • 58
  • 86
1 2 3
8
9