google-app-engine

Any way to direct 'returned' emails for various errors?

We manage a website which gives agents the ability to enroll members across the country. At times, the member or agent will enter a bad email address during the enrollment process and important PDF'd information cannot be delivered to the member. Similarly, an agent may try and recruit a sub-agent and have the same issue. Is there any...

Modelling Data with Google App Engine Datastore

I am currently building a web application on Google App Engine in Python to harvest horse racing data of the form. The basic data structure is Course has many Meetings has many Races has many Horses has one Jockey and had one Trainer. So far I have got the following models (reduced number of fields for sake of brevity). class Course(db....

How to use session on Google app engine

Hi, im building an application using Google app engine with python, and im stuck with making a sessions. Is there any app that does that alreadyfor app engine? Thank you. ...

Is appengine Python datastore query much (>3x) slower than Java?

I've been investigating the appengine to see if I can use it for a project and while trying to choose between Python and Java, I ran into a surprising difference in datastore query performance: medium to large datastore queries are more than 3 times slower in Python than in Java. My question is: is this performance difference for datast...

random object in GAE python

Possible Duplicate: Fetching a random record from the Google App Engine Datastore? Hi there, I'm looking for an equivalent of Entry.objects.order_by('?') without using Django. I just want to get a random instance of my model using GAE datastore. ...

Django-nonrel in Google App Engine ListField

I am trying to build an example app in Google App Engine using django-nonrel. and am having problems implementing ListField attribute into a model. I have created an app test_model and have included it as an installed app in my settings. The model.py is: from django.db import models from djangotoolbox import * from dbindexer import *...

How to return and use an array of strings from a jQuery ajax call?

I'm using Google App Engine (Python) along with jQuery for Ajax calls to the server. I have a page where I want to load up a list of strings in Javascript from an Ajax call to the server. The server method I want to invoke: class BrowseObjects(webapp.RequestHandler): def get(self): ids_to_return = get_ids_to_return() ...

Need help processing upload form with Google App Engine Blobstore

I'm trying to learn the blobstore API... and I'm able to successfully upload files and get them back, but I'm not having any luck trying to combine an upload form with a regular webform to be able to associated extra info with the file, such as a nickname for the file. Below is the code for a simple app I've been playing with. It's base...

Accessing session variable in Django template with Google App Engine (Webapp) - Python

Hi, I have a Django template as my front-end. At the back-end, I used the sessions provided from Gaeutilities to store a variable (email). Front-end: {% if session.Email %} <div id="entersite">WELCOME <em>{{session.Email}}</em></div> {% else %} <div id= "entersite"><a href="/login/" id= "entersite">Enter the Site</...

Alternative strategy to query aggregation ("group by") in google app engine datastore

App Engine Datastore cannot be queried for an aggregate result. Example: I have an entity called "Post" with the following fields: Key id, String nickname, String postText, int score I have many different nicknames and many posts by each nickname in my datastore. If I want a leader board of the top ten nicknames of total scores, I w...

Google App Engine Python: sys.path.append not working online

I have this import sys sys.path.append('extra_dir') import extra_module It work perfectly under Windows XP App Engine SDK (offline) But when deploy online, it give me <type 'exceptions.ImportError'>, what am I missing to deploy it online? ...

Appengine - Upload to Google Spreadsheet datastore values

Hello, I´d like to know how to upload to a Google Spreadsheet, values stored in the database of my application. Objective: Connecting to Google Spreadsheet and automatically fill in a chart in the admin area with values that were passed by the upload. I've been giving a look in the docs and it seems to me that I have to use Bulk Loa...

richfaces 3.3.3 on google app engine

Hi, I'm trying to run Richfaces 3.3.3Final with Google app engine but richfaces uses javax.imageio.ImageIO restricted class. Is there any workaround for this problem ? ...

Filtering of an Object's property's property in google app engine

In an App Engine app, I store registered members in a table that looks like this: class Member(db.Model): user = db.UserProperty(required=True) #other stuff The problem starts when I need to check if a User is already in my Member table. GAE documentation says user value is not guaranteed not to change in time since it is comp...

Clarification: can I put all of a user's data in a single entity group by making up an ancestor key?

I want to do several operations on a user's data in a single transaction, but won't need to update multiple users' data in a single transaction. I see from http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths that "A good rule of thumb for entity groups is that [entity groups]...

Problem sorting IntegerProperty in Google App Engine

http://code.google.com/appengine/articles/update_schema.html Trying to work this out for a nice little updater across my web application. The only difference is rather than sorting on a StringProperty as shown in the example I am using an IntegerProperty. No matter which way round I turn the query I cannot get it to respond correctly t...

Getting implicit property names on a db.Model in Google App Engine?

How can I get access to the implicit property names of a db.Model in Google App Engine? In particular, assume I have the following: class Foo(db.Model): specific = db.IntegerProperty() class Bar(db.Model): foo = db.ReferenceProperty(Foo, collection_name = "bars") if I attempt to get the property names on Foo, like so: my_foo = ...

Querying by Key in Google App Engine?

I need to get entity by user key that is setted as Id for User entity. Now I want to query all entities that have same key that user has. How can I do that? ...

BDD in Google App Engine (Python)

I have seen some mention of some form of TDD for Python with Google App Engine, however I've not really seen a discussion of a BDD approach. Is someone familiar with how to string this together properly with GAE? I'm hopeful that things may be in a better position for this now than they were from notes and articles I saw from about a y...

How to make a light query for a many to many relationship in Google Apps Engine?

How to make a light query for a many to many relationship? Users has many Lists the ListUser is the model that links them Currently I'm doing like this but there are a lot of get queries to get all this data. lists = [] for list in user.lists: lists.append(list.list) Now I got this: list_users = user.lists.fetch(1000) # proble...