google-app-engine

upload file using inputstream in GAE java

I am trying to upload file to google sites and am obtaining the stream using apache commons file upload. I get the input stream as under InputStream is = fileItem.openStream(); How will I convert this input stream in file object so that below call succeeds and I am able to set the MediaFileSource to above converted file. Atta...

Google app engine authentication

Hi guys, I would like my iphone app to store & get data from my app engine application, but how can i make sure only my app makes these requests? Do i have to make a gmail account, and let that account login as administrator to my google app engine application? So i can use that account from within my iphone app to handle the request? ...

Swap two elements in a list using JDO on Google Appengine

I have a TestEntity that has an ArrayList of ChildEntities. They are joined in a owned relationship. I want to get the Entity from the datastore, update an int field in the child entity, and then swap the position of the two child entities. However, as soon as I swap the entities, it appears as though the updates to the int field are e...

appcfg.py upload_data is failing with expected <directory> even though I've got it

I am having trouble getting the bulk uploader to work. I have been following the tutorial here:http://code.google.com/appengine/docs/ python/tools/uploadingdata.html. When I enter the following command (from Windows, using PowerShell) appcfg.py upload_data --config_file=src/friend_loader.py --filename=frienddata.csv --kind=Friend ./sr...

What approach(es) have you used for lightweight Python unit-tests on App Engine?

I'm about to embark on some large Python-based App Engine projects, and I think I should check with Stack Overflow's "wisdom of crowds" before committing to a unit-testing strategy. I have an existing unit-testing framework (based on unittest with custom runners and extensions) that I want to use, so anything "heavy-weight"/"intrusive" ...

Problem with db.get in Google App Engine

When I run the following code: query = datastore.Food_Item.all() results = query.fetch(1) foodA = results[0] foodB = db.get(foodA.key()) I would expect foodA and foodB to be the same type. However, I see that the foodA is of type "model.datastore.Food_Item" and foodB is of type "datastore.Food_Item". Why are they diffe...

Not authorized to write to this feed

I am calling service.insert(new URL(getContentFeedUrl()), newAttachment); for Google sites file upload using MediaStreamSource in servlet and get following exception com.google.gdata.util.ServiceForbiddenException: OK Not authorized to write to this feed at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDat...

Google app engine datastore reference or not?

hi, i am filling up a big table with text items from different countries. My question is: Should i use a referencePropery to link to languages in another table?. Thats the way i would do it in a normal mysql relational database. or just go redundant and specify the language for each text in the table? Whats better? redundancy & incre...

Google App Engine Task Queue on GWT

I'm looking at Google App Engine's new task queue API for Java and I'm having a hard time relating that to my GWT application. If I wanted to use a task queue to do some asynchronous processing, how should I do that using GWT. The way I see it is, I'd have to send a server request that would then do the submission to the task queue API....

Why ItemSkippedException?

I am trying to update content in Google sites and am reading the stream in exception VersionConflictException. When I check the stream it is all fine and is completely loaded in POST request but then I get following error. org.apache.commons.fileupload.FileItemStream$ItemSkippedException at org.apache.commons.fileupload.MultipartStr...

Java PDF Library that works on GAE?

Since GAE has severe restrictions like - "A Java application cannot use any classes used to write to the filesystem"... Is there a good Java PDF library that can write the PDF to memory for streaming to the cloud? ...

Programatically access Google App Engine Quota Details

Does anyone know if it is possible to access via code either from within App Engine SDK or some form of WebAPI your current account quota details. I would like to be able to track the datastore usage and bandwidth usage within the running application so that it may alter its behaviour depending on the levels of Quota left for the applic...

How do I move data from local appengine datastore to remote datastore?

I can see how to download the remote datastore to local, and how to upload a CSV to the remote app engine server as outlined here: Uploading and Downloading Data But is there a way to export my local data to a CSV that is ready for the remote upload script? Of course I could write a custom exporter, but is there no way to automate this...

Importing python classes in the Google App Engine

I am writing a GAE application and have run into an import problem. My app.yaml has the following lines: - url: /py/classes/ static_dir: py/classes - url: /py/lib static_dir: py/lib - url: /py/bin/signin script: py/bin/signin.py I am keeping a python file, titled employee.py, containing the class employee, in the classe...

Fixtures for Google App Engine

Hello everyone. Are there any Python tools to create fixtures on Google App Engine? I tried Fixture(http://farmdev.com/projects/fixture/). It is the most awesome tool I have come across. I love the clean approach and the consistency of the APIs. But it is LGPL licensed. Our project is licensed under Apache License 2.0 and AFAIK LGPL is i...

could gSoap be integrated with the Google app engine?

We are using GAE to host our web services, as far as I know GAE only support Java and python at the moment, however most of our engineers here are more comfortable with C/C++, so i was wondering if there is a way to integrate gsoap with GAE at all. Thanks for your help! ...

Java based Atom/RSS Library that works in Google App Engine

I am trying to publish an Atom/RSS feed in my Java based Google App Engine code. I have tried using Rome and keep getting the following error (tried googling without success), also the code I am running that generates the error is the demo code (so I get the feeling Rome won't work with GAE) java.lang.NoClassDefFoundError: org/jdom/JDOM...

Why do updating Google site with file upload throws File ItemSkippedException?

I have a media source object MediaStreamSource ms = new MediaStreamSource(is, mediaType); AttachmentEntry newAttachment = new AttachmentEntry(); and try to insert it and in case it already exists then update it instead of insert. try { return service.insert(new URL(getContentFeedUrl()), newAttachment); } catch (Versi...

Apache commons file upload and percentage progress in Google Apps

I am trying to use ProgressListener update call to obtain percentage completion of each file. Number of files are dynamically chosen and uploaded. public class ProgressListenerImpl implements ProgressListener Will I be able to use the "item" parameter in the update call? update(long bytesRead, long contentLength, int item) And...

Where can I find a (current) example of code to bulk upload data to Google AppEngine? (For localhost, too.)

I've tried to do it like they describe in the AppEngine docs but I can't get it to accept my upload. (I haven't tried to download.) I want to get it working in the development environment before I tried on the live site. It's kind of confusing, because I don't know if I should be trying appcfg.py or bulkloader.py. (I mostly tried appcfg...