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...
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...
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...
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...
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...
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.
...
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...
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):
...
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?
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...
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...
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.
...
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, .....
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...
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...
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...
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?
...
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.
...
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...
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?
...