google-app-engine

Google App Engine for Businesses Source License

I believe I read that if you wanted to use Google's App Engine, your application needed to be open source. With the recent announcement of App Engine for Business, does the same rule apply? I would like to host an application on this particular platform but have no interest in releasing the code initially (down the road, potentially). ...

How do you add and use just the Django version 1.2.1 template?

Thanks for the help. Currently I import in gae: from google.appengine.ext.webapp import template then use this to render: self.response.out.write(template.render('tPage1.htm', templateInfo )) I believe the template that Google supplied for Django templete is version 0.96. How do I setup and import the newer version of only the Django ...

how do I instrospect appengine's datastore models?

in order to dynamically create a form, i have to find the property types of a model's properties at runtime. appengine docs says that Model.properties() will return a dictionary of properties name and their class type. when i use this method in my code, only the name is returned and the classtype value is always empty. ...

App Engine - Java AppStats - It shows all requests as cpu time of 0.

All lines in my AppStats look like this: real=19ms cpu=0ms api=0ms overhead=0ms, it has the correct real time, but the other values are always 0. Anyone have this problem before or know how to fix this? ...

Having encoded a unicode string in javascript, how can I decode it in Python?

Platform: App Engine Framework: webapp / CGI / WSGI On my client side (JS), I construct a URL by concatenating a URL with an unicode string: http://www.foo.com/地震 then I call encodeURI to get http://www.foo.com/%E5%9C%B0%E9%9C%87 and I put this in a HTML form value. The form gets submitted to PayPal, where I've set the encoding t...

openid along with oauth ?

in my application, user sign in/sing out via openid ( same as stackoverlfow ). i would like to open up my application a bit via oauth to third party applications. how do i create my app which is openid-consumer to make it oauth-provider ? is there some standard,library etc out there ? i am basically working in app engine and python...

Task Queue stopped working

I was playing with Goole App Engine Task Queue API to learn how to use it. But I couldn't make it trigger locally. My application is working like a charm when I upload to Google servers. But it doesn't trigger locally. All I see from the admin is the list of the tasks. But when their ETA comes, they just pass it. It's like they runs but ...

App Engine - Save response from an API in the data store as file (blob)

Hi there, I'm banging my head against the wall with this one: What I want to do is store a file that is returned from an API in the data store as a blob. Here is the code that I use on my local machine (which of course works due to an existing file system): client.convertHtml(html, open('html.pdf', 'wb')) Since I cannot write to a ...

Is it possible to find and delete orphaned blobs in the app engine blobstore?

I'm using the python api and have created a few orphaned blobs during testing. Because of a bug in the dashboard, I can't currently delete these, and in any case going forward I would like to be able to do this programmatically since it will be unfeasible to do it manually once the number of entities goes up. ...

Google App Engine - Calling getSession().invalidate(); causes app engine to act weird.

When I call hreq.getSession().invalidate(); app engine slows down tremendously. I looked at appstats and saw that on a page where no database calls are made, it was calling memcache.get and datastore.get 23 times each. The stack trace of these calls showed that it was being called from getSession(). This only happens on the production ...

How to roll back a google app engine transaction via web interface?

I tried to update my app on google appengine by my wireless dropped during the process. When i tried again i got an error "Another transaction by user ajakimov is already in progress for this app and major version." I know i can rollback the update using "appcfg.sh -e [mygmail] rollback [war path]" but i was wondering if it's possible to...

Custom constructors for models in Google App Engine (python)

I'm getting back to programming for Google App Engine and I've found, in old, unused code, instances in which I wrote constructors for models. It seems like a good idea, but there's no mention of it online and I can't test to see if it works. Here's a contrived example, with no error-checking, etc.: class Dog(db.Model): name = db....

How to retrieve Google Appengine Objects by id (Long value) ?

Hi, i have declared an entity the following way: public class MyEntity { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent private String text; //getters and setters } Now I want to retrieve the objects using the id. I tried to manage it from the Google Appengine Data Vie...

Can Google App Engine be used for "check for updated" and download binary file web service?

Hi, I'm a Google App Engine newbie and would be grateful for any help. I have an iPhone app which sources data from an sqlite db stored localling on the device. I'd like to set up a Google App Engine web service which my iPhone client will talk to and check if there is a newer version of the sqlite database it needs to download. So iP...

Custom Task Queue in App Engine?

I have created a new task queue and defined it in queue.yaml I am not sure how to start adding tasks to this queue? with the default queue it is simple taskqueue.add(...) how do we do it for a custom queue? ...

task strategies for handling HardDeadlineExceededError

I've got a number of tasks/servlets that are hitting the HardDeadlineExceededError which is leaving everything hanging in an 'still executing' state. The work being done can easily exceed the 29 second threshold. I try to catch the DeadlineExceededException and base Exception in order to save the exit state but neither of these excep...

How to Not Force Login After Users Close Their Browser on gae

...Like Django's session or cookies Does anyone have a simple way of allowing this? ...

How to reference another project in Eclipse with Google appengine project?

I am trying to extract some common classes out to be a common jar, and I want to reference it by the appengine project in Eclipse. It compiles well but could not run. The console just told that some classes from the common jar project could not be found. I know I can just export the project into a jar, but I may want to change it some...

Does GAE/OpenID/OAuth support xmlhttp proxy?

Currently, my code would construct the GWT form, which user would submit directly to openId (or any authenticaiton service). Such a method works fine. However, what if I had the gwt page server access the OpenID provider, is there a way/strategy for the server to mediate authentication between its client and the auth provider? I wish t...

Whats wrong with this task queue setup?

I've setup this task queue implementation on a site I host for a customer, it has a cron job which runs each morning at 2am "/admin/tasks/queue", this queues up emails to be sent out, "/admin/tasks/email", and uses cursors so as to do the queuing in small chunks. For some reason last night /admin/tasks/queue kept getting run by this code...