google-app-engine

Captcha solution which can be used with App Engine?

Is there a simple captcha solution which can be easily integrated with a form deployed using Google App Engine? I am using Python. ...

Keeping a JDO persistence manager alive instead of closing it?

Does a persistence manager generally need to be closed? Can you just keep one open and re-use it all the time, ie just repeat this pattern: Transaction tx = pm.currentTransaction(); try { tx.begin(); // do stuff tx.commit(); } finally { if (tx.isActive()) tx.rollback(); } What are the downsides of this? It seems to mak...

Proper way to edit existing entity in tipfy

I'm using a PersonEditHandler class in tipfy to edit a Person entity. I have the get() and post() methods formed, but when I reference self.person (to check if the get method found the existing person by key), I get an 'object has no attribute' error. This is because I never initialize it in the init method since I'm inheriting from...

How to deploy source code from multiple Eclipse projects to Google App Engine? (aka, linking two projects)

Hey all. I am thinking of extracting some core functionality into a new Eclipse GAE project, so I don't have duplicated code. Meaning I now have two Eclipse projects; one "main" and one "util". I have linked them together locally in Eclipse, but when I deploy the main project, the source code from the second project is not deployed. I...

How to create an empty model formset in django running on google app engine

Hi, I'm using app engine patch for an application on app engine. I have a model formset which works great for editing objects, but I can't use it for adding objects because I can't create an empty formset. I want the user to be able to add multiple records at once, which I was I am using formsets. In django, to create an empty formse...

Google App Engine - When to use it, when not too?

It's still unclear to me when I should or should not use Google App Engine to deploy a commercial web application. It appears Google has "business" level support. http://code.google.com/appengine/ Can someone bullet list when I should use Google App Engine and when I shouldn't use it for a web application ...

rendering multipe html pages

I'm working on a project and i need to use multiple html pages to interact with my code like: viewing index.html first:- path = os.path.join(os.path.dirname(__file__), 'index.html') self.response.out.write(template.render(path, template_values)) and then when i press the sign out button the program should view this page:- path = o...

GoogleAppEngine JSON object using javascript

I want to create a dictionary containing array and send it to GAE using jquery's ajax request. something like- {'a':'text', 'b':'othertext','c':['texta','textb']} which I'm creating manually. I am able to receive and process a and b using self.request.get on GAE but not the c. Is there any other way to create JSON object in js? Please s...

What is the reason for 'Policy prevented put operation' in google app engine?

The following exception is logged when data is put into the cache. com.google.appengine.api.memcache.stdimpl.GCacheException: Policy prevented put operation The data which is stored in the cache: Map<String, List<Dependents>> dependentMap = new HashMap<String,List<Dependents>>(); In the map key will be an ID and for each ID there w...

logout from command prompt to uploading application on google app

I am uploading google app engine application with the help of appcfg.py command from command prompt in windows. But after one login I want to upload another application from the same command prompt but i cannot because this second application has no rights with the current login so i want to logout from this session on command prompt s...

Blob extension validation

Hey! I use the following to insert a JPEG into a blob field: db.Blob(self.request.get("imgFile")) How can I check if "imgFile" is a JPEG? I dont want to let people upload EXEs, etc. Thank Joel ...

Auction style transaction on GAE and BigTable

Hello, what would be the best way to create mechanism that ensures that for example: Two people won't buy same item at the same time in auction based on GAE application using BigTable? If someone could enlighten me with "under the hood" kind of description I would be grateful. ...

Does gzip work on the development server?

Does gzip work on the python development server for appengine? How can I test this in the future? Note: I've used Firebug to look at my HTTP requests from the browser, and I see that Accept-Encoding is set to "gzip,deflate". ...

Iterating through Expando's Dynamic properties in Django Templates

I'm trying to iterate through an Expando-Model's dynamic properties in order to output them all. Is there a way of doing this other than creating your own method like such: class Event(db.Expando): platform = db.ReferenceProperty(Platform) date = db.DateTimeProperty() def getValues(self): return self._dynamic_proper...

Google app engine demo app jsp page creates 500 error

Hello I am trying out Google app engine and eclipse. I ihave installed the google plug in and have copied the code in the demo exactly. I saw a similar question posted here and I tried the solution of making sure the JDK was checked instead of JRE. I am using the guestbook demo for java and when I get to the part where I add the jsp pa...

What is your way to do GAE Apps using Clojure?

I want to develop apps on GAE using Clojure with Compojure, using either Eclipse or Idea, emacs is not a bad idea :P So which are the best ways to do this? I don't think that I want to use leiningen because I believe that maven can be very strong if you pass the learning curve - I read this blog http://compojureongae.posterous.com/tag/g...

Microblogging demo - google i/o talk, for java?

Hi, I'm looking to implement a pub/sub feature in my web app as Bret Slatkin described in his 2008 google i/o presentation, "creating scalable web apps". If UserA posts a message, I want all their followers to see that they have a message waiting for them next time they visit the web app. I'm not familiar with python and am not sure if...

PermanentTaskFailure: 'module' object has no attribute 'BulkPageParser'

http://stackoverflow.com/questions/3325929/class-google-appengine-runtime-deadlineexceedederror-how-to-get-around/3327311#3327311 using the code as shown in the former question link, I am now getting PermanentTaskFailure: 'module' object has no attribute 'BulkPageParser' on the production server logs after I call the url/script. I ...

How do I store a fetched entity in memcache for App Engine?

Because each new request in App Engine creates a new Handler, the entity I'd like to alter and put (using POST) has to be retrieved again. This seems wasteful, since I've populated the form with the information from GET a moment earlier. How do I store a key, fetched entity, or key/entity pair in memcache for App Engine? ...

Creating GWT Application-Wide Template

I have searched for an easy way to do this but couldn't find a specific example. I have an application developed in GWT utilizing GAE that I would like to have a standard look at feel for the various pages within the application. Is there a way to do this utilzing GWT? ...