google-app-engine

Google Apps Engine mail fetch

How can I fetch mails from gmail account in Google Apps Engine Django application? ...

Google App Engine proxy

What would be the simplest implementation of a proxy written for GAE, which relays every URL (including POST, and header data) to a remote HTTP host, and return with it's result (with special consideration to error codes)? Please apply KISS principles! ...

How to vary Constants based on deployment instance

I've been building a GWT 1.7 + GAE application using the eclipse plugin. The system constants are loaded into a MyConstants.properties file that is loaded by the singleton MyConstants class extending the ...gwt.i18n.client.Constants class. I would like for MyConstants to load one of several files containing settings like MyConstants-l...

website load testing Python script

Hello, I am after a Python script to help me load test my Google App Engine website. I want to give it a set of URLs and a request rate (would need to use threads) and then measure the response times of my website. I have had a look at a few solutions but they don't let you set an upper limit for the request rate. Any ideas? Thanks ...

Transactions behaviour when request times out. [google app engine]

Google app engine has this useful little function in its db class, db.run_in_transaction() Which is suppose to garentee that your method will be rolled back if an exception is raised. "If the function raises an exception, the transaction is rolled back." What happens if my request times out in the middle of its execution? Will it ro...

How do I copy local Google App Engine Python datastore to local Google App Engine Java datastore?

I have around 4000 entities that I need to insert into a Java App Engine datastore. As I understand it, only the Python version of App Engine currently has tools to upload data from a CSV file to a datastore. So, what I have done thus far is follow the instructions at http://code.google.com/appengine/docs/python/tools/uploadingdata.htm...

sorl.thumbnail : 'thumbnail' is not a valid tag library ?

I am trying to install sorl.thumbnail but am getting the following error message: 'thumbnail' is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module named PIL This error popped up in this question as well http://stackoverflow.com/questions/1356334/need-help-solving-sorl-thumbnail-error...

IM service using Google App Engine

Hi, I want to implement a web-based IM service on the lines Meebo. Might sound ambitious but that adds to the fun of it. My research suggests XMPP would be a good protocol for the IM since it can talk to proprietary protocols as well. Am I right? What else would I need to complete this? Could Google App Engine(GAE) fit in to this proj...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for logging in and out, so there's no trivial way to employ Google Accounts features in a thick client. Can you give some advices/hints/ideas...

How do I upload data to Google App Engine periodically?

I'm writing an aggregation application which scrapes data from a couple of web sources and displays that data with a novel interface. The sites from which I'm scraping update every couple of minutes, and I want to make sure the data on my aggregator is up-to-date. What's the best way to periodically submit fresh data to my App Engine ap...

Query/GqlQuery .order() restricting the result set?

I just noticed a strange result from a query that I have trouble understanding. It appears as if adding an order() to a Query is limiting the results I get back. Here is my interaction: >>> SomeModel.all().filter('action =', 'foo').order('created_at').count(), SomeModel.all().filter('action =', 'foo').count() (192L, 293L) >>> Some...

Delete an entity by key without fetching it first in app engine (using JDO)

Is there a way to delete an entity without having to fetch it from the datastore first? I am assuming I already have the key or id for the entity. I'm thinking of something like deleteObjectById that would be an analogue to getObjectById on PersistenceManager. The closest I can think of is using Query.deletePersistentAll() (as seen her...

Selecting a given property from a table in App Engine

Is there a way to select only a given property from the App Engine datastore? Imagine I have an User entity with many properties, but in a given moment I just want to fetch a list of user names (instead of fetching all properties for all users). So, something equivalent to the following SQL: SELECT name FROM User; I'm interested in al...

How do I do a if a in list_b test in Django 0.96 Templates?

How do I do a if a in list_b test in Django 0.96 Templates? I'm having a list of checkboxes and a variable containing a list of corresponding values from a previous submit of the checkboxes. Now I want to set all checkboxes in the list to checked="checked" and I usually use a "if a in listb" test for this. But this doesn't seem to be p...

Move or copy an entity to another kind

Is there a way to move an entity to another kind in appengine. Say you have a kind defines, and you want to keep a record of deleted entities of that kind. But you want to separate the storage of live object and archived objects. Kinds are basically just serialized dicts in the bigtable anyway. And maybe you don't need to index the arch...

Python: appengine urllib2 headers from a 302

A normal urllib2 works fine: >>> import urllib2 >>> r = urllib2.urlopen(u"http://bit.ly/4ovTZw") >>> r.geturl() 'http://www.writing.com/main/handler/action/show_document/item_id/933413.mp3' >>> r.headers.get("Content-Type") 'audio/mpeg' But in appengine, the same code shows text/html. def get(self): r = urllib2.urlopen(u"http://b...

Custom Incoming Mail Domain With Google App Engine

Hello. I have set up a custom domain for my google app engine application, which accepts incoming email. While this works great if you want to use an email address like [email protected], I would like to use a custom domain like [email protected]. Is it possible to do this? A solution that will not work, is to simply u...

Error saving image into Google App Engine/Java

I'm trying to make following JDO entity in GAE/J (I'm using Gilead). package test.domains; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.Prim...

Environment on google Appengine

Hi, does someone have an idea how to get the environment variables on Google-AppEngine ? I'm trying to write a simple Script that shall use the Client-IP (for Authentication) and a parameter (geturl or so) from the URL (for e.g. http://thingy.appspot.dom/index?geturl=www.google.at) I red that i should be able to get the Client-IP via...

java.lang.ClassCastException cannot be cast to javax.servlet.ServletException

I'm trying to deploy a java application to appspot (google appengine). I'm new to java, so bear with me. When I run the application locally from eclipse, it runs fine. After uploading it to google appspot, I get an error (only in one of the .jsp pages, other .jsp pages work fine). The error log says: Uncaught exception from servlet ...