google-app-engine

How can I determine a user_id based on an email address in App Engine?

The newest App Engine SDK (1.2.1) has an API call to compute an ID for a user account based on his email address. (The ID remains the same even if the user changes his address later.) See this question about unique, opaque user IDs for information. However, I have a problem with this API call. user_id() works for logged-in users (i.e...

how to get the url of the current page in a GAE template

In Google App Engine, is there a tag or other mechanism to get the URL of the current page in a template or is it necessary to pass the url as a variable to the template from the python code? ...

NetBeans debugging of Python (GAE)

dev_appserver works normal when run it. But if i try o debug, i found an error caused by __file__ that is changed on jpydaemon.py. Has anyone successfully debugged apps on NetBeans? ...

How to use Google app engine with my own domain (not subdomain)?

Hi all, After hours of reading about and experimenting with DNS records I can access my Google app engine app via these URLs: myappid.appspot.com www.myappid.myowndomain.com What does not work: myowndomain.com www.myowndomain.com I want to be able to serve my app directly off my domain and not a subdomain. I've seen apps that do...

How to host static html files on AppEngine?

Is it possible to host a static html website on AppEngine? And how to make my domain name work with it? ...

GAE + Django. app-engine-patch or django-gae-helpers?

I'm building app using GAE and wanted to use Django for that. Which "patch" is better? app-engine-patch or django-gae-helpers? I mean functionality and future of them (will one of them die soon). ...

rules for slugs and unicode

After researching a bit how the different way people slugify titles, I've noticed that it's often missing how to deal with non english titles. url encoding is very restrictive. See http://www.blooberry.com/indexdot/html/topics/urlencoding.htm So, for example how do folks deal with for title slugs for things like "Una lágrima cayó en l...

Is it possible to prevent DoSing on Google App Engine?

I'm considering developing an app for Google App Engine, which should not get too much traffic. I'd really rather not pay to exceed the free quotas. However, it seems like it would be quite easy to cause a denial of service attack by overloading the app and exceeding the quotas. Are there any methods to prevent or make it harder to excee...

Is there a way to run OpenBravo on AppEngine?

OpenBravo is an open source ERP system, is it possible to run it on Google's Java AppEngine ...

how to get the n-th record of a datastore query

Suppose that I have the model Foo in GAE and this query: query = Foo.all().order('-key') I want to get the n-th record. What is the most efficient way to achieve that? Will the solution break if the ordering property is not unique, such as the one below: query = Foo.all().order('-color') edit: n > 1000 edit 2: I want to develop a ...

Has anyone gotten Recaptcha to run on the Google App Engine (in Java)?

I followed the recaptcha instructions and created a simple app that works if I run it in Eclipse using a local Tomcat server but the same files give an error (verify-params-incorrect) when validating the user's response when run in Eclipse using the local Google App Engine SDK. ...

How do you validate a URL with a regular expression in Python?

I'm building a Google App Engine app, and I have a class to represent an RSS Feed. I have a method called setUrl which is part of the feed class. It accepts a url as an input. I'm trying to use the re python module to validate off of the RFC 3986 Reg-ex (http://www.ietf.org/rfc/rfc3986.txt) Below is a snipped which should work, right?...

design for handling exceptions - google app engine

I'm developing a project on google app engine (webapp framework). I need you people to assess how I handle exceptions. There are 4 types of exceptions I am handling: Programming exceptions Bad user input Incorrect URLs Incorrect query strings Here is how I handle them: I have subclassed the webapp.requesthandler class and overrode...

What Built-in Form Validation Does App Engine/Django Have?

I'm writing an app using App Engine and Django. What Built-in Form Validation Does App Engine/Django Have? For example how can I verify that the user actually entered an integer and not a string? ...

Get source of appengine published version

Hi, can I download my appegine source code from google? ...

datastore transaction restrictions

in my google app application, whenever a user purchases a number of contracts, these events are executed (simplified for clarity): user.cash is decreased user.contracts is increased by the number contracts.current_price is updated. market.no_of_transactions is increased by 1. in a rdms, these would be placed within the same transacti...

Working with subdomain in google app engine

How can I work with sub domain in google app engine (python). I wanna get first domain part and take some action (handler). Example:      product.example.com -> send it to products handler      user.example.com -> send it to users handler Actually, using virtual path I have this code: application = webapp.WSGIApplication( ...

should I drop Google App Engine?

I am developing some kind of financial market simulation on GAE. Although I have attained much progress, I have begun to consider dismissing GAE and going for a Django + rdbms solution for the last few days. Let me state my reasons: transactions: GAE supports transactions with single entity groups. if an application involves complex tr...

Google App Engine Set-Cookie fails to use my expiration date

I am trying to set a cookie in my Google App Engine page: self.response.headers.add_header('Set-Cookie','CookieName=1234; expires:Sun, 31-May-2009 23:59:59 GMT; path=/;') The expiration date is not showing up in the browser. So it deletes itself at the end of the session. Here is the output from curl -D: HTTP/1.1 200 OK Content-T...

Google App Engine Large File Upload

I am trying to upload data to Google App Engine (using GWT). I am using the FileUploader widget and the servlet uses an InputStream to read the data and insert directly to the datastore. Running it locally, I can upload large files successfully, but when I deploy it to GAE, I am limited by the 30 second request time. Is there any way aro...