google-app-engine

AppEngine GeoPt Data Upload

I'm writing a GAE app in Java and only using Python for the data upload. I'm trying to import a CSV file that looks like this: POSTAL_CODE_ID,PostalCode,City,Province,ProvinceCode,CityType,Latitude,Longitude 1,A0E2Z0,Monkstown,Newfoundland,NL,D,47.150300000000001,-55.299500000000002 I was able to import this file in my datastore if I ...

What are the use cases for non relational datastores?

I'm looking at using CouchDB for one project and the GAE app engine datastore in the other. For relational stuff I tend to use postgres, although I much prefer an ORM. Anyway, what use cases suit non relational datastores best? ...

Google App Engine compatibility layer

I'm planning an application running on Google App Engine. The only worry I would have is portability. Or just the option to have the app run on a local, private cluster. I expected an option for Google App Engine applications to run on other systems, a compatibility layer, to spring up. I could imagine a GAE compatible framework utiliz...

appengine, urlfetch, and the content-length header

I have a Google Appengine app requesting pages from another server using urllib2 POSTs. I recently enabled gzip compression on the other server running Apache2, and the Appengine page requests started failing on key-error, indicating 'content-length' is not in the headers. I am not explicitly declaring gzip as an accepted encoding in m...

OpenID for Google App Engine

I saw many links over the internet and specifically openid-consumer project (which is a part of http://code.google.com/p/google-app-engine-samples/), but it doesn't work as honestly readme file says. So what's the latest update on that? Is there any way I can authenticate my web site users with OpenID from someone besides Google (like s...

How do I go about setting up a TDD development process with Google App Engine?

I'm primarily a Ruby guy, but lately I've been working on a lot of Python stuff, in particular, App Engine code. In Ruby, I'd use automated continuous integration (autotest), code coverage tools (rcov), static analysis (reek), and mutation testing (heckle) in my development process, but I'm not sure how best to set up a similar developm...

A simple framework for Google App Engine (like Sinatra)?

Is there a simple 'wrapper' framework for appengine? Something like Sinatra or Juno? So that one can write code like the following: from juno import * @route('/') def index(web): return 'Juno says hi' run() UPDATE: I want to use the Python API (not Java) in GAE. ...

Why "not" Google App Engine?

I've heard of GAE and even though it doesn't support PHP, people have gotten around this limitation by using Quercus I think (I haven't tried it, but supposedly it works). But what factors should I consider when evaluating whether it's a match for me? For example, what made you not go with GAE? Or if you went with it, what are you not ha...

Multi-domain deployment of Google App Engine (GAE) apps

We would like to develop and sell custom commercial GAE applications. I would like information on the deployment of GAE applications on arbitrary Google Apps domains (i.e. not appspot). Suppose our company is abc.com and we are selling app to def.com and xyz.com. What are the steps to deploy our app on our customer's domain? When an ...

Which Property type do I use to put a User's user_id() in the Datastore?

This is why I need to put user_id()'s in the Datastore: A User value in the datastore does not get updated if the user changes her email address. This may be remedied in a future release. Until then, you can use the User value's user_id() as the user's stable unique identifier. http://code.google.com/appengine/docs/pyt...

Get the request uri outside of a RequestHandler in Google App Engine (Python)

So, within a webapp.RequestHandler subclass I would use self.request.uri to get the request URI. But, I can't access this outside of a RequestHandler and so no go. Any ideas? I'm running Python and I'm new at it as well as GAE. ...

Problem with local dumpdata (on django app-engine-patch)

I'm using django with app-engine-patch and I'm having this wierd problem running manage.py dumpdata from local store (works fine when I use the --remote option) I'm running a local development server that has some test data on it. I can see that data on the admin site. However running manage.py dumpdata all I get is this: [{"pk": "agZm...

How to store dynamically generated HTML form elements from Javascript in Python?

I have an HTML form that a user can add an arbitrary amount of input fields to through jQuery. The user is also able to remove any input field from any position. My current implementation is that each new input box has an id of "field[i]" so when the form is posted it is processed in Python as field1, field2 field3, ...field[n] i = 0 wh...

Pure python solution to convert XHTML to PDF

Hello, I am after a pure Python solution (for the GAE) to convert webpages to pdf. I had a look at reportlab but the documentation focuses on generating pdfs from scratch, rather than converting from HTML. What do you recommend? - pisa? Edit: My use case is I have a HTML report that I want to make available in PDF too. I will make up...

how to put in transaction

I have a class: class AccountTransaction(db.Model): account = db.ReferenceProperty(reference_class=Account) tran_date = db.DateProperty() debit_credit = db.IntegerProperty() ## -1, 1 amount = db.FloatProperty() comment = db.StringProperty() pair = db.SelfReferenceProperty() so, what I want is to make a Save() m...

Interacting with SVN from appengine

I've got a couple of projects where it would be useful to be able to interact with an SVN server from appengine. Pull specific files from the svn (fairly easy, since there is a web interface which I can grab the data off automatically, but how do I authenticate) Commit changes to the svn (this is the really hard/important part) Possibl...

Best method to determine which of a set of keys exist in the datastore

I have a few hundred keys, all of the same Model, which I have pre-computed: candidate_keys = [db.Key(...), db.Key(...), db.Key(...), ...] Some of these keys refer to actual entities in the datastore, and some do not. I wish to determine which keys do correspond to entities. It is not necessary to know the data within the entities, j...

AppEngine: Will the items stored in a StringListProperty always remain in the same order?

After looking through the docs on App Engine and the StringListProperty or the ListProperty I can't seem to find whether there is a guarantee on the order of the items in the list. That is, I'd like to be certain that the list order stays the same despite putting and getting from the DataStore: instance = MyModel() instance.list_propert...

Getting a list of child entities in App Engine using get_by_key_name (Python)

My adventures with entity groups continue after a slightly embarrassing beginning (see Under some circumstances an App Engine get_by_key_name call using an existing key_name returns None). I now see that I can't do a normal get_by_key_name call over a list of entities for child entities that have more than one parent entity. As the Mode...

Ecommerce with django in google app engine

Is there any module available for googlecheckout/paypal in django on google app engine? are there any example apps which are doing this? ...