google-app-engine

What is a good pattern for inexact queries in the Google App Engine Datastore?

The Google App Engine Datastore querying language (gql) does not offer inexact operators like "LIKE" or even case insensitivity. One can get around the case sensitive issue by storing a lower-case version of a field. But what if I want to search for a person but I'm not sure of the spelling of the name? Is there an accepted pattern fo...

AppEngine: Maintaining DataStore Consistency When Creating Records

I've hit a small dilemma! I have a handler called vote; when it is invoked it sets a user's vote to whatever they have picked. To remember what options they previously picked, I store a VoteRecord options which details what their current vote is set to. Of course, the first time they vote, I have to create the object and store it. But s...

Django + Pydev/Eclipse + Google App Engine - possible?

Has anyone been able to get Google App Engine/Django working in Pydev/Eclipse? I tried this but had difficulty getting Pydev to recognize all of the externally linked folders (django plugins) that I was referencing. I ended up copying all of those folders into the project en masse, rather than referencing them, resulting in a massively b...

configure google app engine production server with smtp parameters

My Google app engine application needs to send out email. On development server i specify my smtp configuration (host,port,user,password) while starting the server, and app engine sends email using the specified smtp paramters. How do i do the same with production server? (if it can be done at all) ...

Best Django features that do work on Google App Engine?

I'm in the process of starting a new project on App Engine and Brandon's advice made me think. Many features of Django don't work on Google App Engine: the admin interface and the modeling framework for example. Considering that App Engine already has a simple framework built-in ("webapp") and I can freely pick from the many Python te...

Google App Engine Query (not filter) for children of an entity

Is the parent of an entity available in a Query? Given: class Factory(db.Model): """ Parent-kind """ name = db.StringProperty() class Product(db.Model): """ Child kind, use Product(parent=factory) to make """ @property def factory(self): return self.parent() serial = db.IntegerProperty() Assume 500 fa...

Web Scraping with Google App Engine

I am trying to scrape some website and republish the data as a RSS feed. How hard is this to setup with Google App Engine? Disadvantages and Advantages using GAE. Any recommendations and guidelines greatly appreciated! ...

PHP support for Google App Engine?

Does anyone have any idea as to when the Google App engine will support PHP? ...

Context processor using Werkzeug and Jinja2

My application is running on App Engine and is implemented using Werkzeug and Jinja2. I'd like to have something functionally equivalent of Django's own context processor: a callable that takes a request and adds something to the template context. I already have a "context processors" that add something to the template context, but how d...

Debugging web apps

I've gotten pretty used to step-through debuggers over the years, both in builder, and using the pydev debugger in Eclipse. Currently, I'm making something in Python and running it on Google App Engine, and I should add that I'm pretty new to developing any real web app; I've never really done much beyond editing HTML code. So, I'm ru...

Anybody tried mosso CloudFiles with Google AppEngine?

I'm wondering if anybody tried to integrate mosso CloudFiles with an application running on Google AppEngine (mosso does not provide testing sandbox so I cann't check for myself without registering)? Looking at the code it seems that this will not work due to httplib and urllib limitations in AppEngine environment, but maybe somebody has...

Hidden limitations of Google App Engine?

I've been looking into writing a web app that will run on Google App Engine, but before I commit myself to the platform I'd like to know what, if any, limitations there are. I'm aware of the basic CPU/bandwidth restrictions that Google places on the free service, but I'm wondering more about development restrictions like how BigTable com...

CPython internal structures

GAE has various limitations, one of which is size of biggest allocatable block of memory amounting to 1Mb (now 10 times more, but that doesn't change the question). The limitation means that one cannot put more then some number of items in list() as CPython would try to allocate contiguous memory block for element pointers. Having huge l...

Django templates - Regrouping by a string parameter

I have the following code in one of my Django templates that I want to refactor: {% ifequal sort_type "set" %} {% regroup cards by set as grouped %} {% endifequal %} {% ifequal sort_type "rarity" %} {% regroup cards by rarity as grouped %} {% endifequal %} It does work, but it's really ugly and I want to make it more like this: ...

Is batch fetching db.get(keys) preserving the keys order?

Google App Engine supports a fetch operation based on a list of keys google.appengine.ext.db.get(keys). I'd be interested to figure out if there is any guarantee that the result list preserves the order of the keys (i.e. keys = [k_1, k_2, k_3] then for the result [r_1, r_2, r_3] is always true that r_i.key() == k_i). As far as I know, ...

Is it possible to generate and return a ZIP file with App Engine?

I have a small project that would be perfect for Google App Engine. Implementing it hinges on the ability to generate a ZIP file and return it. Due to the distributed nature of App Engine, from what I can tell, the ZIP file couldn't be created "in-memory" in the traditional sense. It would basically have to be generated and and sent i...

Is there a Django apps pattern equivalent in Google App Engine?

Django has a very handy pattern known as "apps". Essentially, a self-contained plug-in that requires a minimal amount of wiring, configuring, and glue code to integrate into an existing project. Examples are tagging, comments, contact-form, etc. They let you build up large projects by gathering together a collection of useful apps, ra...

AppEngine: Query datastore for records with <missing> value

I created a new property for my db model in the Google App Engine Datastore. Old: class Logo(db.Model): name = db.StringProperty() image = db.BlobProperty() New: class Logo(db.Model): name = db.StringProperty() image = db.BlobProperty() is_approved = db.BooleanProperty(default=False) How to query for the Logo records, wh...

How can I manually register distributions with pkg_resources?

I'm trying to get a package installed on Google App Engine. The package relies rather extensively on pkg_resources, but there's no way to run setup.py on App Engine. There's no platform-specific code in the source, however, so it's no problem to just zip up the source and include those in the system path. And I've gotten a version of ...

How to make Satchmo work in Google App Engine

I understand that there are big differences in data-store, but surely since django is bundled and it abstracts data-store away from Satchmo, something can be done? Truth is that I am not a Python guy, been mostly Java/PHP thus far, but I am willing to learn. Plus, if this is not possible today, lets band together and form a new Open So...