google-app-engine

Differential AJAX updates for HTML table?

I have a game on Google App Engine that's based on a 25x20 HTML table (the game board). Every 3 seconds the user can "move," which sends an AJAX request to the server, at which time the server rerenders the entire HTML table and sends it to the user. This was easy to write, but it wastes a lot of bandwidth. Are there any libraries, clie...

How to implement internet high scores in Google App Engine

I want to implement internet high scores for my game. And give feedback to players which place they have (not only top100 or something like that). In normal SQL it would look like that: SELECT COUNT(*) FROM Scores WHERE points > :newUsersPoints and GQL have something similar db.GqlQuery("SELECT * FROM Score WHERE points > :1", newUser...

Parsing incoming mail with google app engine?

We have our mail setup with google apps. We want to be able to run some regular expressions on incoming mail and process this information. Is this possible today with Google App Engine? Does google provide some kind of infrastructure that can do this? ...

How do I detect if my appengine app is being accessed by an iphone/ipod touch?

I need to render the page differently if it's acessed by an iphone/ipod touch. I suppose the information is in the request object, but what would be the syntax? ...

Optimizing Jinja2 Environment creation

My application is running on Google App Engine and most of requests constantly gets yellow flag due to high CPU usage. Using profiler I tracked the issue down to the routine of creating jinja2.Environment instance. I'm creating the instance at module level: from jinja2 import Environment, FileSystemLoader jinja_env = Environment(loader...

Google App Engine - How to remember user login?

Hi All, I haven't been able to figure out if it's possible to have a 'remember me' option available to users logging into GAE applications with the integrated Google accounts. Does anyone know if this is possible, and if so how? Thanks! ...

Is there a local Google App Engine data viewer?

I want to use google's online GAE data viewer offline... Is there some bunch of python code to display all my local data and even schema? ...

What will be the upgrade path to Python 3.x for Google App Engine Applications?

Is the transition to Python 3.x for Google App Engine likely to be difficult? I know Google App Engine requires the use of at least Python 2.5. Is it possible to use Python 3.0 already on Google App Engine? ...

Memcache-based message queue for App Engine?

I'm working on a multiplayer game on App Engine and it needs a message queue (i.e., messages in, messages out, no duplicates or deleted messages assuming there are no unexpected cache evictions). Here are the memcache-based queues I'm aware of: MemcacheQ: http://memcachedb.org/memcacheq/ Starling: http://rubyforge.org/projects/starling...

Dump memcache keys from GAE SDK Console?

In the "Memcache Viewer", is there any way to dump a list of existing keys? Just for debugging, of course, not for use in any scripts! I ask because it doesn't seem like the GAE SDK is using a "real" memcache server, so I'm guessing it's emulated in Python (for simplicity, as it's just a development server).. This would mean there is a ...

Python tzinfo and daylight time

(I am new to Python and Google App Engine, please forgive me if my questions seem basic). I'm having a helluva time trying to manage multiple user timezones in my Google App Engine application. Here are my constraints: If a user enters the time on an input, it will be local time (including DST, when appropriate). If a user does not e...

Scalable polling of an AppEngine application from numerous "active" clients?

I'm working on an application that will run on Google AppEngine. I plan to have the web interface of that application wait, among many other things, for notifications coming from the AppEngine server. Ideally I would have liked to use an XMLHttpRequest() to make a request to the server that would be waiting until the next notification ...

Deployment of static directory contents to google app engine

I've deployed my first GAE application and I am getting "TemplateDoesNotExist" exception at my main page. It feels like my static directory content is not uploaded to GAE. Isn't it possible that I update (appcfg.py update myapp/) all my files including the static ones and run it standalone on myappid.appspot.com ? by the way here you ca...

Formatted text in GAE

Google app engine question: What is a good way to take formatted text (does not have to be rich text) from the user and then store it in a text or blog property in the datastore? Mainly what I'm looking for is it to store newlines and strings of spaces, so that the text comes back looking the same as when it was submitted. ...

get_by_id method on Model classes in Google App Engine Datastore

I'm unable to workout how you can get objects from the Google App Engine Datastore using get_by_id. Here is the model from google.appengine.ext import db class Address(db.Model): description = db.StringProperty(multiline=True) latitude = db.FloatProperty() longitdue = db.FloatProperty() date = db.DateTimeProperty(auto_now_add=T...

Separating Models and Request Handlers In Google App Engine

I'd like to move my models to a separate directory, similar to the way it's done with Rails to cut down on code clutter. Is there any way to do this easily? Thanks, Collin ...

Javascript Compression Workflow for App Engine

Any website with a non-trivial amount of Javascript code is going to want to compress it for deployment. What's the best way to do this as part of the App Engine deployment process while still accessing the uncompressed javascript for easy development in the dev_appserver? ...

Google App Engine on Silverlight

Hi, are there any good examples on how to use Google App Engine from Silverlight, preferably without writing custom webservices? Cheers Nik ...

Why GQL Query does not match?

What I want to do is build some mini cms which hold pages with a uri. The last route in my urls.py points to a function in my views.py, which checks in the datastore if there's a page available with the same uri of the current request, and if so show the page. I have a model: class Page(db.Model): title = db.StringProperty(require...

Disappearing Expando dynamic_properties in the dev server

I've been developing an AppEngine site which uses the Expando class to store info. I can successfully store a property in the development server. I verify the info is there with the developer (web) console, but when I run code I have the following problems: - the hasattr(myobj, attr_name) function returns false - the getattr(myobj, attr_...