google-app-engine

Give a folder certain permissions on App engine?

I'm completely new to app engine and I need to give a certain directory in my application permission 733 How would I do that? ...

App Engine JDO Transaction on multiple many-to-one

I have a simple domain model as follows Driver - key(string), run-count, unique-track-count Track - key(string), run-count, unique-driver-count, best-time Run - key(?), driver-key, track-key, time, boolean-driver-update, boolean-track-updated I need to be able to update a Run and a Driver in the same transaction; as well as a Run and...

How to create auto increment primary key?

I am using Google AppEngine (Java) and would like to have the primary key to be auto incrementing, preferably increasing by 1. IdGeneratorStrategy.INCREMENT seems to be not supported in AppEngine. Is IdGeneratorStrategy.SEQUENCE what I need? ...

What happens if I change an existing valueStrategy from IdGeneratorStrategy.IDENTITY to IdGeneratorStrategy.SEQUENCE?

I have an existing model in Google AppEngine declared as such: @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id;` If I will to change the valueStrategy to IdGeneratorStrategy.IDENTITY, what will happen to existing records? Any side effects? ...

How to use delete() method in Google App Engine Python's request handler

In GAE Python, I could use class MyRequestHandler(webapp.RequestHandler): def get(self): pass #Do Something... def post(self): pass #Do Something... To handle GET and POST request. But how can I handle DELETE and PUT? I see delete() and put() in API documentation, but I don't know how to write a form to simula...

What is meant by 'bucket-size' of queue in the google app engine?

Google app engine task queues have configuration as (example) <queue> <name>mail-queue</name> <rate>5/m</rate> <bucket-size>10</bucket-size> </queue> Here, what does the 'bucket-size' mean? I could not find a comprehensive documentation about this in google app engine documentation. Does specifying this as 10 means th...

Total number of live sessions on GAE

Hi, Is there a way to count total number of active sessions (e.g. in 10 minutes) on Google App Engine (Python)? I want to show something on frontpage like, This site currently haz 200 people online ...

JDO Exception: "Query requires 1 parameters, yet 2 values have been provided."

Despite the fact that my JDO query contains TWO declareParameters statements, the code below produces an error claiming only one parameter is accepted: Query requires 1 parameters, yet 2 values have been provided. The two parameters are amountP and taxP: javax.jdo.Query query= pm.newQuery(Main.class); query.setFilter("amount == amo...

How can I create PDFs with Play Framework and Google App Engine?

I need to create PDFs with Play Framework and Google App Engine. Does anyone know how? ...

Does GAE accept twill at all?

Hello, I have created my GAE application in directory "my_application". Inside this directory I created a .py file and named it "my_scrypt". The contents of "my_scrypt" in the beginning were as following: print 'Content-Type: text/plain' print '' print 'This is my first application' Then I ran it locally on my machine (Windows X...

How to create email verification URL in Java?

Hi I'm writing a web application in Java where at some point user can enter there email address to receive an email. My question is about the verification of this email address (so it's not about the validation!). I'm tagging this question also with google-app-engine, because the application will live there, but I don't think that matte...

order("-modified") with geomodel

Edit: Solved using key=lambda and learning what I'm actually doing. With gemodel like class A(GeoModel,search.SearchableModel): I'm trying to order by date using db.GeoPt to store google maps coordinates with GAE and geomodel I can map and match. But order("- modified") is not working. There is no trace. All ideas are welcome. The c...

FormPreview with djangoforms.ModelForm

I'm confused about which to use djangoforms.ModelForm or django.forms.Form took djangoforms.ModelForm trying form post, preview and edit with same template. post and edit work. Can you point me to an example with combined FormPreview, GAE SDK and djangoforms.ModelForm usage? I try to avoid patch the latest django and think the SDK comes ...

urllib.py doesn't work with https?

In my python app I try to open a https url, but I get: File "C:\Python26\lib\urllib.py", line 215, in open_unknown raise IOError, ('url error', 'unknown url type', type) IOError: [Errno url error] unknown url type: 'https' my code: import urllib def generate_embedded_doc(doc_id): url = "https://docs.google.com/document/ub?id...

Using Google App Engine how to upload document in google docs (python)

This question was asked before at : http://stackoverflow.com/questions/3082683/using-google-app-engine-how-to-upload-document-in-google-docs-python However it was not answered then. Anyone got any clues how to get it done. I have looked at the apis and the documentation but couldn't find an easy way to do do. Currently it is easy to ...

Problem with App Engine Bulk Loader

I am trying to create a bulk loader to upload data into the datastore. However, when I try to upload it, I am facing this error and stacktrace: [INFO ] Starting import; maximum 10 entities per post [ERROR ] [WorkerThread-0] WorkerThread: Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/...

Use BlobstoreService and ImageService to upload/serve images drawn from an HTML5 canvas

I'm working on an Appengine application in Java that allows users to upload images drawn through an HTML5 canvas library called PaintWeb (http://code.google.com/p/paintweb/). Currently I have a servlet that receives the XMLHttpRequest POST from the paintweb javascript library as a formencoded image. Paintweb.js library sends XMLH...

Does use of the default fetch group for a child entity necessarily imply an illegal join on App Engine?

I tried to add a property to my User class to get it to automatically load its child records (contacts). According to the error below, this doesn't seem possible, at least the way I tried to do it: @Persistent(mappedBy = "user", defaultFetchGroup="true") private List<Contact> contacts; WARNING: Meta-data warning for com.contactl...

Getting BadValueError on Google App Engine Datastore Delete

I am trying to delete records in the datastore. Unfortunately, whenever I try to delete the items, it gives me a BadValueError, saying Districts (one of the columns) is required. Because of an issue with the bulk loader, Districts is null for all of the rows...but I still need to clean out the datastore to try to fix the bulk loader er...

Uploading lists with bulkupload in Google App Engine

In my data model, one of my properties is a list. How do I tell the bulk loader to convert the string into a list delimited by ' ' (space)? ...