google-app-engine

List of floats on the google appengine

Been hunting for an hour or so. It would appear that db.Float does not exist. Is there any way to store a list of floats in a ListProperty? Here's the basic idea: class Data(db.Model): temperatures = db.ListProperty(item_type=???) Thanks in advance. ...

Mocking on the GAE development server ?

Hello, I'm trying to mock an HTTPServletRequest data on my development GAE server. I'm running Eclipse Plugin 1.3.7 I've tried to do this: package com.FOO.madservice.servlet.mock; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import static org.mockito.Mockito.*; @SuppressWarnings("seri...

BulkLoader -export_transform

I have created web application using java.I wantted to download data from appengine datastroe so that I am using BulkLoader concept. In my project I designed entity as follows @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long school_id; @Basic private String schoolname; After that I tried to download data so th...

How to prevent race conditions in Google App Engine using Java?

I don't know whether race condition is the best word, but I didn't find a better word. In some situations I send a mail to the administrators of my application. They can then log in, verify some data and then automatically send an email to all the users of the application. How do I prevent the situation where two or more administrators ...

Django on Google App Engine: debug queries to datastore

What is the best way to get something similar to django-debug-toolbar working on Google App Engine? At least I want to log all GQL at my local development environment. I am using django-nonrel + djangoappengine + djangotoolbox. I tried: debug-toolbar - does not work http://popcnt.org/2008/05/google-app-engine-tips.html - link to the c...

Python: catching particular exception

I have such code (Python 2.5, GAE dev server): try: yt_service.UpgradeToSessionToken() // this line produces TokenUpgradeFailed except gdata.service.TokenUpgradeFailed: return HttpResponseRedirect(auth_sub_url()) # this line will never be executed (why?) except Exception, exc: return HttpResponseRedirect(auth_sub_url()) # in...

Is there a good utility / 3rd party library to manage the AppEngine datastore?

I have been developing an app using appengine. We are likely to be storing a lot of records in the datastore but I find the admin functionality you are given to manage this data lacking. As an example, there are no good ways to bulk delete a bunch of data - you have to write a class of your own to do this. Before I start down the path...

From within a servlet how do you access a variable set inside a corresponding servlet filter?

I'd like to use the following filter to open and close persistence managers. public final class PersistenceFilter implements Filter { private static final PersistenceManagerFactory persistenceManagerFactory = JDOHelper.getPersistenceManagerFactory("transactions-optional"); private static PersistenceManagerFactory factor...

shopify xml request from GAE python

I'm trying to make requests to the shopify.com API over GAE python the url i have to request is not formed in the usual format. it is composed like http://apikey:password@hostname/admin/resource.xml with urllib I can request it but i cant set the headers for an xml request so it doesn't work. urllib2, httplib... are having problems wi...

Google App Engine 500 Error, but why?

I am getting the following error in App Engine after I deployed it. Does anybody know the reason? It's causing an error page sometimes. It seems simplejson is the cause... According to http://code.google.com/status/appengine/ everyting should be working accordingly. 09-20 11:03AM 56.027 / 500 55902ms 240cpu_ms 0kb Mozilla/5.0 (Macint...

Problem with JDOQL to obtain results with a "contains" request

Hi, I am using Google App Engine for a project and I need to do some queries on the database. I use the JDOQL to ask the database. In my case I want to obtain the university that contains the substring "array". I think my query has a mistake because it returns the name of universities in the alphabetical order and not the ones containin...

Using PayPal with AppEngine (Python)

I'm looking to use Google AppEngine (Python). The Tipfy framework looks very good. How do I add PayPal and/or Google Web Payments into my app. Is there a simple extension or similar that I can drop in? ...

Django Google app engine reference issues.

Hi all, I am working on an application on Django and google application engine. In my application I have several models with several ReferenceProperty fields. The issue is that if any of the ReferenceProperty field gets deleted it produces a ReferenceProperty related errors in all the other models where it has been used. What I want is...

is it possible to have keyname and an id for an entity in Appengine?

I'm building a facebook app, and my users table's keyName is set to the Uid of the facebook user. I found this to be efficient because I can use db.Key.from_path() to efficiently query the datastore for a particular user instead of doing a query (where uid = x, limit = 1). This is actually my first time using key names. But when I did ...

Google Apps exception for large attachments

Hi, I am trying to send mail with large size attachment of 2MB. But sending mail fails.(Sending to Google Apps) as: MailItemEntry[] entries = new MailItemEntry[1]; String EmlPath = "C:\\testemail.eml"; String msg = File.ReadAllText(EmlPath); entries[0] = new MailItemEntry(); entries[0].Rfc822Msg...

How to stay under GAE quotas? Algorithm design

Hi there I have a function in my app that uses a lot of resources, and takes time to execute. This is normal and control, however I often get errors due to GAE limit of 30 secs/request. My function takes the argument and returns several results one after the other, decreasing the size of the argument (a unicode string) Summary: def m...

How to order by ancestor/parent Google App Engine query?

I would like to order entities by ancestor, GQL reference only mentions properties in ordering. Do I have to store a parent as a property to involve it in the ordering? I trying to achieve something like this: Foo.all().ancestor(bar).order('ancestor').order('-value').fetch(100) EDIT: I have something like this: bar ├ spam │ ├ fo...

Can a user language change form values in html?

Hi there, My application has a form with 2 submit buttons: <input name="rating" class="Show" type="submit" value="Show answer"> <input name="rating" class="Skip" type="submit" value="Skip"> However I noticed some errors in GAE logs: ValueError: invalid literal for int() with base 10: 'Voir la r\xe9ponse' ValueError: invalid literal...

What are the WordPress analogs\clones that would run under Google App Engine?

So I want it to run on free google app engine version, I want it to be more or less structured like WP (meaning end user experience). I need clean readable source so I could change it as I wish. If there are no such alike WP ones than some other Blog Engine would work for me. What are the WordPress analogs\clones that would run under ...

What are GAE compatible JSP site-building frameworks?

What are Google app engine compatible JSP site building frameworks? (like zend for php) ...