google-app-engine

django admin: customize delete user functionality

Hi All, I am working on a Django application on Google app engine (using app engine patch). In my project I have to customize the way the delete functionality works in the admin panel. I have defined my own functions for all the models that I have created and its working fine. Now the issue is to customize the delete functionality for...

python code problem

i have this code: class Check(webapp.RequestHandler): def get(self): user = users.get_current_user() be = "SELECT * FROM Benutzer ORDER BY date " c = db.GqlQuery(be) for x in c: if x.benutzer == user: s=1 break else: s=2 if s is 0: self.redirect('/') to check whether th...

DownloadError: ApplicationError: 5 in urlfetching twitter RSS on AppEngine

I'm playing with twitter statuses rss feed on Google AppEngine (in python). I perform a urlfetch and I systematically get a DownloadError: ApplicationError: 5 when I deploy the app whereas everything is fine when I test it locally on my dev server. I guess it's a timeout issue due to AppEngine limitations. I already extended urlfetc...

Any solution for a join on app engine?

Hi, I have the following data model: class StadiumOccupant { String stadiumname; String username; } class Friend { String username; String friendname; } I want to find all users at a stadium that are also my friends. I can do that like this: List<String> friendsAtStadium; String stadiumId = 'xyz'; List<Friend> friends = se...

App Engine data modeling problem

I'm kinda new to modeling my data model for efficient querying with GAE, but have extensive knowledge with RDBMS. Here's the problem: I got roughly a million terms (strings) and need to query and compare associated numerical values as a time series with weekly data points. Think of it as a graph with time on the X axis and a linear...

Is app engine more expensive when it's slower?

Hi, There have been quite a few occasions recently when app engine appears to run slower. To some degree that's understandable with the architecture of their cloud platform. I'm not talking about new server instances - just requests to warm servers. I'm also just referring to CPU, not datastore API, but I do wonder about that as well. ...

BeanCreationException NoSuchBeanDefinitionException while starting Google App Server for below Spring code

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [clinic.ict.service.TestService] found for dependency: expected at least 1 bean w...

Throwing exception in Python and reading the message in jQuery

How can I throw an exception on my server and have the exception's message be read in JavaScript (I'm using AJAX with jQuery). My server environment is Google App Engine (Python). Here's my server code: def post(self): answer_text = util.escapeText(self.request.get("answer")) # Validation if ( len(str(answer_text)) < 3): ...

Numerical computing environment on cloud? [ Undergrad Project ]

Hello all. I am a computer science undergraduate currently in my final year. As my final year project, I am thinking of creating a matlab-like numerical computing environment as SAAS that supports matrix manipulations, plotting of functions and data, image processing operations etc. The project is going to be created in Java + Scala. S...

How do I get the values from the counter after I processed all the records with Google AppEngine MapReduce?

How do I get the values from the counter after I processed all the records with Google AppEngine MapReduce? Or am I missing the use case for counters here? Sample Code from http://code.google.com/p/appengine-mapreduce/wiki/UserGuidePython How would I retrieve the value of counter counter1 when the mapreduce is done? app.yaml handler...

Cause of Google App Engine's security warning while using Open ID (e.g. in Firefox)?

Basically, the prelude to this question can be found here: https://groups.google.com/group/google-appengine/browse_thread/thread/d8bc09d56626e82a/7ed967150c9ce025 Setup: Google App Engine 1.3.5 (1274741460) Open ID for Authentication Firefox 3.6.X On return from the open-id provider's login-page, Firefox complains: Although t...

How do I run a .sql3 file that I received when pulling my database from Google App Engine?

The Google page on uploading and downloading datastores is pretty useless, but I've gotten this far. Now I need to get the data in the .sql3 into whatever database it was originally stored in. ...

how to get a descendant from parent entity

I can't seem to find a quick answer on how to get Datastore descendants given a reference to the parent entity. Here's a quick example: # a person who has pets john=Person(**kwargs) # pets fluffy=Pet(parent=john, ...) rover=Pet(parent=john, ...) # lengthy details about john that are accessed infrequently facts=Details(parent=john, .....

Design Golf: modeling an Address in appengine, aka an AddressProperty?

Today I was refactoring some code and revisited an old friend, an Address class (see below). It occurred to me that, in our application, we don't do anything special with addresses-- no queries, only lightweight validation and frequent serialization to JSON. The only "useful" properties from the developer point-of-view are the label an...

Multiple forms with one page in tipfy

I haven't been able to find an example of using multiple forms on one page (or one Handler) for tipfy. I'm trying to allow users to both answer (form 1) and comment on an item (form 2) from the same page. One approach to doing this in PHP is submitting a hidden form and checking for it before processing. However, I'm not sure what t...

JSTL fmt library throws 500 error, requires sessions enabled?

I'm developing a simple servlet/JSP, data-driven web site on Google App Engine. I've started to use the JSTL fmt library on some of my data entry forms and get the following session-related error when using tags <fmt:dateFormat> and <fmt:numberFormat>: [java] java.lang.RuntimeException: Session support is not enabled in appengine-web.xm...

Break up app engine cron jobs into smaller chunks?

I have a cron job which parses a # of RSS feeds. It turns out it takes too long so I'm getting a HardDeadlineExceededError. I tried just creating two cron jobs, one which parses the even feeds, one which parses the odd feeds, I still get the error. What's the best way to break up this work so it fits within a 30 second window? ...

Coldfusion deploy into Google app with Eclipse

I've download eclipse-jee-galileo-win32.zip and following instruction of this post, http://blog.kukiel.net/2009/09/coldfusion-on-google-app-engine-with.html After that, I encounter following errors once I've deleted war file and replace openbd's war files into my project. Please let me know if you have such problem just like me. ...

What does ":P" mean in a JDO query

I am using JDO on google app engine. Each 'Employee' has a 'key'. I have a set of keys and wanted to retrieve all Employees whose key belongs to this set. So I implemented it using the 'contains()' filter as specified here. The code works fine and looks like this - List<Key> keys = getLookupKeys(....) ..//Get keys from somewhere. Quer...

web shop (shopping cart) on google app engine

there are currently no off-the-shelf shopping carts for use on Google App Engine is the only solution on GAE at the moment to bespoke your own? what has other people done in terms of a shopping facility on GAE? ...