google-app-engine

GoogleAppEngine web proxy

Does anyone know of a simple open source proxy capable of running on google app engine or where to start in making one? (preferably in python, I'm trying to bypass a site blocking system) ...

Google app engine transactional inserts in java

I have tried to insert/update multiple entites on a single transaction but no avail. It always throws IllegalArgumentException. I wanted to do something like this. Transaction tx = pm.currentTransaction(); tx.begin(); for(int i=0;i<10;i++) { SampleEntity entity = new SampleEntity(i); pm.makePersistent(entity); } tx.commit();...

Is it possible to use a different datastore for each subdomain with Google App Engine?

Lets say I have the domain: mywonderfulapp.com I would like to have a subdomain per client. For example: clientA.mywonderfulapp.com I would like client A to go to the URL clientA.mywonderfulapp.com and retrieve its data privately and client B could to go to clientB.mywonderfulapp.com to retrieve its own data. Application code sho...

How to set parent for datastrore entity during bulkloading data by appcfg.py on Google App Engine?

I'm trying to bulkload data using appcfg.py as described here. I got it working except setting parent entity, I can't seem to find info on how to set a parent entity for entity being created by the import. Can you point me to the right direction or provide a code snippet for my bulkloader.Loader implementation? ...

Google App Engine Authentication

While creating a new application on App Engine, I can choose whether to allow any standard Google Accounts to log into my application or limit the logins to one particular Google Apps domain. I am afraid allowing Google account only login could damage an application acceptance. Is it possible to use a simple authentication mechanisms...

Debugging techniques for Google App Engine development with Python

I'm new to both Python and Google App Engine development and find myself at a loss on how to effectively debug my apps during development. I come from a C#/ASP.NET background where I can typically step through the code in Visual Studio. However, when using a text editor and running dev_appserver.py from a command line, I don't have the...

Google App Engine with Eclipse?

I'm trying to use Google App Engine with Eclipse but it's not working. I downloaded PyDev, and made a Hello World Python app, so that's working fine. Then I created a new project, with the "Google App Engine" template. I was following these instructions. I used the "Hello Webapp World" as a template, and didn't change any of the Python...

GWT Servlet-based Notification (Server Event Bus)

Can anyone think of a good way to allow the server to notify the client based upon server processing? For example, consider the following events: A user requests a deletion of data, however, due to it's long-running time, we kick it off to a queue. The client receives a "Yes we completed your transaction successfully". The server delet...

how to read an excel file on google app engine

Generally I work with CSV files but for this project I need to support XLS too. Does anyone have experience reading XLS files on GAE with Python? 2 possible alternatives I am considering: xlrd Google Docs API ...

Google App Engine: Upload data syntax?

I'm trying to use appcfg.py to upload to localhost/Google App Engine. I've basically been following these instructions word for word, but now I'm having trouble. Here is the command I'm trying: appcfg.py upload_data --app-id=appname --config_file="path\to\ItemLoader.py" --filename="path\to\data.csv" --kind=Item --url=http://localhost:8...

Python: Misunderstanding about how imports work

Here is my loader class, ItemLoader.py: from google.appengine.ext import db from google.appengine.tools import bulkloader import models class ItemLoader(bulkloader.Loader): def __init__(self): bulkloader.Loader.__init__(self, 'Item', [('CSIN', int), # not too DRY... ('name',...

What would you use a "Future" for in App Engine?

In the docs, a FutureWrapper is defined like this: FutureWrapper is a simple Future that wraps a parent Future. What's a Future, why would you need to wrap it and when would you use it in App Engine? ...

Google App Engine: Give arguments to a script from URL handler?

Here is a portion of my app.yaml file: handlers: - url: /remote_api script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py login: admin - url: /detail/(\d)+ script: Detail.py - url: /.* script: Index.py I want that capture group (the one signified by (\d)) to be available to the script Detail.py. How can I do this? Do...

How to manage multiple accounts login and logout in different browser pages?

I have a website built on App Engine(Java) and need user use Google Account to login. The situation is that: User Adam has multiple accounts. User Adam login with account Adam1 and get his Adam1 data in browser page A. He clicked logout link, but opened it in another tab page B(the same browser of course) He login with another accoun...

Signing a string with RSA private key on Google App Engine Python SDK

Is there any known way to sign a plain text string with RSA private key on Google App Engine Python SDK? ...

GAE/J datastore backup

What is the easiest way to do a GAE/J datastore backup? It looks like there is python bulkloader.py tool to do backup for Python apps, but what should I do to backup Java app? Is there any way to use python tool? ...

Django + GAE (Google App Engine) : most convenient path for a beginner?

Some background info first: Goal: a medium-level complexity web app that I will need to maintain and possibly extend for a few years. Experience: good knowledge of python, some experience of MVC frameworks (in PHP). Desiderata: using django and google app engine. I read extensively about the compatibility issues between GAE and Djang...

Google App Engine: Trouble with Datastore Query

This query works: item = db.GqlQuery("SELECT * FROM Item WHERE CSIN = 13")[0] although if there are no results returned, it blows up in my face. (How can I get around this? A for loop seems dubious when I want at max one iteration.) This query does not work: item = db.GqlQuery("SELECT * FROM Item WHERE CSIN = :1", CSIN)[0] CSIN is...

How to update data in memcache when persistent object is updated in GAE

Perhaps I'm missing something simple, as I believe that this is a common scenario... When I am working with an object retrieved from the datastore, I want to detect any changes to the object and update the memcache. In a non-JDO scenario this would be easy, as any data logic layer would intercept all updates and thus have a chance to u...

Designing to easily migrate to Google App Engine

I am going to start designing a web app shortly, and while I have lots of experience doing it in the SQL world, I have no idea what I need to take into consideration for doing so with the goal of migrating to GAE in the very near future. Alternatively, I could design the app for GAE from the start, and so in that case, what are the diff...