google-app-engine

How to make a multi choice form field on app engine

Hi, I'm building an application on app Engine and I want to make a form field with multiple choices. Here is my form (it uses django.newforms from the app engine sdk (django 0.96)) : from google.appengine.ext.db import djangoforms from django import newforms class KeywordForm(djangoforms.ModelForm): class Meta: model = Key...

App engine - Uploading a large file and parsing data from it onto the datastore.

I have a file that contains ~16,000 lines of information on entities. The user is supposed to upload the file using an HTML upload form, then the system handles this by reading line by line and creating then put()'ing entities onto the datastore. I'm limited by the 30 second request time limit. I have tried a lot of different work-aroun...

Is there a way to allow Google App Engine to send body or payload with a DELETE request?

I'm attempting to interface with an API that requires XML data to be contained in the body of an HTTP DELETE request. I'm using urlfetch in AppEngine and the payload is simply ignored for DELETE requests. After reading this article: http://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-request, I realiz...

Using a URL exclusion pattern / Running App Engine in dev mode with Guice.

I'm using GAE and Guice, but I'm running into problems on the dev server. This is my web.xml <filter> <filter-name>guiceFilter</filter-name> <filter-class>com.google.inject.servlet.GuiceFilter</filter-class> </filter> <filter-mapping> <filter-name>guiceFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Everyt...

App Engine Java advance query types

I realize there are a lot of questions already on here about querying the App Engine Datastore, but I want to get opinions on my particular case. I'm querying scores to build a high score table, so I want them ordered by score descending. Now, it is possible for two scores to have the same score value, so paging through based on this va...

Java: dynamic properties

Ladies & Gentlemen, I´m new to Java, forgive me if it´s obvious, but I haven´t found much about it. I´d like to create dynamic properties (variables) for a class at runtime (define an object that can be altered at runtime by adding or changing properties and methods). Reason: I want to store a data model in GAE that can be extended ...

Migrating off AppEngine

I have an application running on AppEngine that uses about 50 CPU hours a day. Most of it is spent waiting for the datastore. I am contemplating moving it off of AppEngine to something like Rackspace Cloud Servers because I think that my application can be more efficient if I can offload some of the work to the database (plus I can add...

How do I pass an argument to a Google App Engine servlet?

I created a servlet that sends email alerts on a specified condition. the users can set alerts through the gui on the main page, but i want to give them the option of unregistering in each email thats sent. i want to include something like this in the email: If you'd like to unregister for this alert, please go to http://mysite.com/m...

Google App Engine: How do I save uploaded text file to Blob, then read from it line by line?

I have a huge file (over 16,000 lines) that I want to save in the datastore for parsing later. Each line contains info on an entity. How do I read line by line from the stored Blob? I can't seem to find a good tutorial or documentation on a Blob anywhere. GAE only shows how to deal with images, but I want to read from the stored te...

Google Big table

I created one project.i want to use google Big table as my database. so that i used JPA datastore.I created one JPA program(using eclipse) in that i selected ODBC database.I display lot of option like MySQL etc.. What option i select to interact with Bigtable. ...

Creating Java Web Service using Google AppEngine

I'm trying to create a simple web service application where I can retrieve a collection of strings and store them into a data store on the AppEngine server. I have knowledge in Java and barely any knowledge of Java Servlets and its WAR standards. I would like to at least have some direction on how to create a web service using the Java...

Unable to access ID property from a datastore entity

Using Google App Engine SDK and Python, I'm facing an issue : I'm unable to access the ID property of a given entity properties. The only properties I can access are those defined in my class Model, plus the key property (see answer below) : class Question(db.Model): text = db.StringProperty() answers = db.StringListProperty() ...

Are any of the Google's App Engine sample apps written in Java?

I was looking at this repository of sample apps for Google App Engine: http://code.google.com/p/google-app-engine-samples/ The strange thing is they all seem to be in Python. Are there any Java sample apps for GAE? ...

write too frequent ,datastore contention timeout

I read app engine wiki, on datastore contention if too frequent write more than 5 times in 1 seconds. The wiki introduced use "shard" approach" as workaround. May i know if we use spring @transactional on this, this can prevent datastore contention timeout right since writing in done concurrently ? ...

How do you get the python Google App Engine development server (dev_server.py) running for unit test in GWT?

So, I have a GWT client, which interacts with a Python Google App Engine server. The client makes request to server resources, the server responds in JSON. It is simple, no RPC or anything like that. I am using Eclipse to develop my GWT code. I have GWTTestCase test that I would like to run. Unfortunately, I have no idea how to actuall...

App Engine - Chain of entities generates exceptionally long entity keys

I am writing an application which allows users to send messages between them. I am using transactions to ensure that there is only a single "top" message between any two users, and this "top" message has a link to the "next" message, and so on.. forming a sort of of linked list of messages. The messages reference each other through refer...

Python question - I have a List of Classes, how do I remove duplicates?

Am writing an App Engine application (it's a simple quest system for a game): so I have a list class Quest(db.Model): name = db.StringProperty() # note: I made about 10 different quest entities ( quest1 to quest10) class User(db.Model): completed_quests = db.StringListProperty() # to store keys of completed quests # note: I made...

How can I load a property lazily in JDO (on Google App Engine)?

I have this code in one of my @PersistenceCapable classes: @Persistent private Blob data; The Blob can be quite big, so I'd like to load it lazily since most of the times I don't need it. How can I annotate that property to avoid immediate loading? I could create another class that contains the Blob alone and then use a lazy one-to-on...

Download Log from AppEngine Including Python Log Statements

I know you can download the raw access logs with appcfg.py, but I'm really interested in all the information around a specific request like python logging statements, exceptions and api statistics (just like the online log viewer). Does anyone know if there is a way to get that information another way then having to build it yourself? I...

Why does the Google App Engine documentation emphasize JDO over JPA?

Most of the docs for Google App Engine are written for JDO. Only one page of docs are devoted to using JPA. Is this because JDO is more suited to App Engine or was there some other reason for the preferential treatment given to JDO? ...