google-app-engine

App Engine: how would you... snapshotting entities

Let's say you have two kinds, Message and Contact, related by a db.ListProperty of keys on Message. A user creates a message, adds some contacts as recipients, and emails the message. Later, the user deletes one of the contact entities that was a recipient of the message. Our application should delete the appropriate Contact enti...

how to effectively run two inequality filters on queries in app engine

I'm aware that app engine has the restriction of "Inequality Filters Are Allowed On One Property Only" as described here: http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Introducing_Indexes However is there some way to essentially run two filters, or is this simply not possible? For instance, if I had an e...

how to store password on gae when someone register.

ex: username:zjm1126 password:11 i stored the password to the datastore on gae, when i see the data view at /_ah/admin, i can see the password all people's password who register, i think it is not safe , yes ? is password stroed like this ? how to stored password, thanks and the check_password method is : user=MyUser.get_by...

Problem uploading app to google app engine

I'm having problems uploading an app to the google-app-engine from my work place. I believe the problem is related to proxy, because I do not see the same problem when following the same procedure from home. (I do not specify HTTP_PROXY from home). These are the commands I run (hostname replaced): set HTTP_PROXY=http://proxy.myhostname...

Using Scala and StringTemplate, how do I loop through a Map

I have my environment setup nicely using Scala, StringTemplate within the Google AppEngine. I am having trouble looping through a Map and getting it to display in the template. When I assign a simple List of just Strings to the template it works using: In Scala Servlet: var photos = List[String]() //... get photo url and title ......

Google App Engine - update_indexes error

I have a Java app deployed on app engine and I use appcfg.py of the Python SDK to vacuum and update my indexes. Yesterday I first ran vacuum_indexes and that completed successfully - i.e. it en-queued tasks to delete my existing indexes. The next step was probably a mistake on my part - I then ran update_indexes even though my previous...

Updating entity fields in app engine development server

I recently tried updating a field in one of my entities on the app engine local dev server via the sdk console. It appeared to have updated just fine (a simple float). However, when I followed up with a query on the entity, I received an exception: "Items in the mSomeList list must all be Key instances". mSomeList is just another list ...

Appengine backreferences - need composite index?

I have a query that is very recently starting to throw: "The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query." I checked the line on which this exception is being thrown, and the problem query is this one: count = self.vote_set.filter("direction =", 1).count() This...

Is there a performance gain from defining routes in app.yaml versus one large mapping in a WSGIApplication in AppEngine?

Scenario 1 This involves using one "gateway" route in app.yaml and then choosing the RequestHandler in the WSGIApplication. app.yaml - url: /.* script: main.py main.py from google.appengine.ext import webapp class Page1(webapp.RequestHandler): def get(self): self.response.out.write("Page 1") class Page2(webapp.Reque...

PHP on the Google App Engine

How can i run a PHP script on the Google App Engine? I know that Java and Python are supported. Is PHP possible? ...

'RegistrationTestModel has no attribute '_deferred'

I am trying to get the Django Shell working with the Google App Engine. Unfortunately, I am getting the following error: AttributeError: type object 'RegistrationTestModel' has no attribute '_deferred' Does anyone have any idea of how to fix this? Stack trace: WARNING:root:Could not read datastore data from /var/folders/X0/X0QgAfs7H...

Task queue java

Hi i'm new to Task queue concepts when i referred the guide I got struck on this line queue.add( DatastoreServiceFactory.getDatastoreService().getCurrentTransaction(), TaskOptions().url("/path/to/my/worker")); what is TaskOptions() method. Is it default method are method created manually what will TaskOptions() method wil...

PubSubHubBub Hubs

Hi, I'm currently building a live web application based upon the PubSubHubBub protocol. However, I encountered several issues. First, I'm in search of a hub application that I can run on my server. There are several applications, but most of them are not mature yet, or they don't support the 0.3 spec. The official google hub runs on th...

database modeling for google app engine for multiple revison of entity.

hi, in my application ( kind of wiki clone ) - an article is frequently changing. and i need to track all changes that are done on that article. { text only. } one crude way i have done it, is to add a datetime property and create a new entity everytime something change. which is too much database wasting. { and also un-necessary inde...

How to get google app engine logs in C#?

I am trying to retrieve app engine logs the only result I get is "# next_offset=None", below is my code: internal string GetLogs() { string result = _connection.Get("/api/request_logs", GetPostParameters(null)); return result; } private Dictionary<string, string> GetPostParameters(Dictionary<string, stri...

Google App Engine: Update model definitons?

I recently updated one of my models by adding a db.ListProperty(): class DependencyArcTail(db.Model): courses = db.ListProperty(db.Key) ''' newly added ''' forwardLinks = db.ListProperty(db.Key) However, I can't seem to get this to be reflected in the SDK dashboard. I cleared the datastore and reloaded it. Then I ran the ...

Using Google AppEngine app as a OAuth provider

Hi, I'm using the Google AppEngine 1.3.4 SDK which offers to allow your application to act as a OAuth service provider (http://code.google.com/appengine/docs/python/oauth/). Setting up a standard application on my localhost and using the following: Request URL /_ah/OAuthGetRequestToken Authorize URL /_ah/OAuthAuthorizeToken Access Toke...

No Content-Length field in the HTTP response header (google app engine)

Content-Length header is missing when I try to download rar, exe, msi static files, though response for images contains Content-Length, but if I change rar extension to jpg it doesn't. How do I solve this? ...

App engine downtime

I've noticed that google app engine seems to have a fair amount of downtime where they place the datastore into read-only mode. Frequently this downtime is in the middle of the day. Is this something that is happening only during early development, or is this something that I can expect to be always be occurring? I'm developing an app...

Where is the Google App Engine SDK path on OSX?

I need to know for creating a Pydev Google App Engine Project in Eclipse. ...