google-app-engine

Objectify - How to filter by boolean?

Ive hit a wall using objectify for the google appengine datastore when filtering on boolean values this is roughly what ive: class Task implements Serializable { ... boolean failed; ... } no matter what i do when i search, i always get an empty response although there are objects in the db that has failed=false examples: ofy().q...

Is there any way to delete app engine's useless datastore indexes

I made a lots of indexes for testing,is it gonna call any issue?then how to delete them? I aready delete them from my datastore-indexes.xml. ...

How to perform a many-to-many filter using ReferenceProperty in Google App Engine?

This is my model, Players and Clubs. As a Club can have many players and a player can have many clubs (in its carrer), I used a many-to-many relationship: class Club(db.Model): name = db.StringProperty() link = db.StringProperty() class Player(db.Model): name = db.StringProperty() link = db.LinkProperty() class...

BlazeDS on GAE (Detected duplicate HTTP-based FlexSessions)

Is BlazeDS 4 work with Google App Engine. I'm using BlazeDS 3.2.0 and getting an such an error Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly. Is it possible to point out a place where I can download the ...

Django Python Appengine

I came across this tutorial: http://thomas.broxrost.com/2008/04/08/django-on-google-app-engine/ Fantastic! Everything worked. I just did not fully understand the code below because in comparison to Django it seems different: views.py: def main(request): visitor = Visitor() visitor.ip = request.META["REMOTE_ADDR"] visi...

django google app engine

Appengine has the handlers and Django the urls.py: How can/should I match these two, to get the best result? Can I/How can I pass all the requests that com to www.mysite.com to the urls.py? What is best for the performance? Just in case someone was wondering. This is what I was looking for: "Tip: App Engine routes requests to Python ...

Is the CPU bandwidth on Google App Engine just too expensive or it is my code?

I wanted to benchmark GAE read performance. Around 10,000 entities are being fetched from data store. These entities contain 3 properties name (around 16 chars), description (around 130 chars) and a time-stamp. Nothing unusually large. Here's what I see: On an average it takes around 11 seconds to read 10k entities. Not sure whether...

Transaction on GAE entity property

I am trying to create a vote function that increases the class URL.votes +1 when clicked. This is a two part question: How do you pull the entity key? (I think you need the key to distinguish which vote property is being modified?) How do you then write the 'a href' for the link to perform the vote? Thanks! Models: class URL(db.M...

How to avoid NotImplementedError "Only tempfile.TemporaryFile is available for use" in django on Google App Engine?

I'm using django 1.1 on Google App Engine through use_library. No django gae helper, django-nonrel or similar tools are used here. Django handles urls routing, forms validation etc., but I'm using pure appengine models. In one of my django's forms there is a FileField, which from time to time seems to call django.core.files.uploadedfile...

Encrypt plain text password for GAE <> Android communication

I have an application for Android which communicates with a Google App Engine (GAE) back-end. For authentication I have a user name and password, however I don't wanna store the plain text password on the client and transfer it in plain text on an insecure channel. So I was thinking of hashing the password when the users enters it the f...

oauth on appengine: access issue

I am having some difficulty accessing resources through OAuth on AppEngine. My client application (on Linux using python-oauth) is able to retrieve a valid "access token" but when I try to access a protected resource (e.g. user = oauth.get_current_user()) , I get a oauth.OAuthRequestError exception thrown. headers: {'Content-Length': ...

Google App Engine: Webtest simulating logged in user and administrator.

Hello, from the webtest documentation I learn that: The best way to simulate authentication is if your application looks in environ['REMOTE_USER'] to see if someone is authenticated. Then you can simply set that value, like: app.get('/secret', extra_environ=dict(REMOTE_USER='bob')) I am trying to do the same thing but in...

oauth & POSTing JSON

Reading section 9.1 of OAuth Core 1.0, I only see a reference to performing POST requests using content-type of application/x-www-form-urlencoded. How does one go about performing POST requests with JSON data in the request body? How does handle the signing? Is it at all possible? Can this work on AppEngine? ...

Storing BlobKey in DataStore with app engine

So I decided to rewrite my image gallery because of the new high performance image serving thing. That meant using Blobstore which I have never used before. It seemed simple enough until I tried to store the BlobKey in my model. How on earth do I store reference to a blobstorekey in a Model? Should I use string or should I use some spec...

Where is my local App Engine datastore?

How can I find where my local development datastore is located? I am using the Python SDK and Linux. ...

How exactly do Google App Engine for Java sessions work?

I know that app engine uses the memcache and the datastore for sessions. I can see in appstats that when i call getSession(), creating a new session, that 1 memcache and 1 datastore put occur. However, in every single request of my app I get the current user object from the session. And no memcache or datastore gets show up in appstats...

No handlers matched this URL -- URL points to GWT file

I get this warning often in my Google App Engine for Java warning console. It's strange because the URL that it claims isnt handled, is the url generated by GWT (im using GWT client-side). Heres an example: /myAppName/62865E45F313D707543A6F093D199127.cache.html They only happen occasionally, but its enough to make a single visit u...

Federated identity on Google App Engine

I am successful with the both methods below, to log on using federated log in for my site on Google App Engine (Python) users.create_login_url("\", "google", "https://www.google.com/accounts/o8/id") users.create_login_url("\", "yahoo", "http://open.login.yahooapis.com/openid20/www.yahoo.com/xrds") I wish to provide more log in optio...

How to update a boolean value in the GAE datastore?

I have the following code from Andreas Borglin's tutorial: @Override public Model saveModel(Model model) { System.out.println("model isDone: " + ((Task)model).getDone()); PersistenceManager pm = PMF.get().getPersistenceManager(); Model savedModel = null; try { savedModel = pm.makePersistent(model); } catch ...

Single Sign-On with Google Apps + App Engine

Is it possible to achieve SSO with the built-in OpenId on App Engine? I've been trying to integrate a Marketplace app and get the user logged in when coming from Google Apps (the admin panel or universal navigation). I failed miserably, then now I found this: "The one exception to this is applications which do hybrid OpenID/OAuth — whit...