google-app-engine

Puzzling App Engine Datastore Issue (ListProperty)

Ok so I have the same python code locally and in the gae cloud. when I store an entity locally, the ListProperty field of set element type datetime.datetime looks like so in the Datastore Viewer: 2009-01-01 00:00:00,2010-03-10 00:00:00 when I store same on the cloud, the viewer displays: [datetime.datetime(2009, 1, 1, 0, 0), datetim...

How authenticate Google wave gadget viewer on Appengine?

Imagine I want to create game "Rock-paper-scissors" for Google Waves. I am thinking to implement it as a Wave Gadget. The idea is simple: all participants send their decisions to my cloud app (it is an Appengine Java Application), my server part collects this data and does not share to anybody until all participants complete their selec...

How do I activate the Interactive Console on App Engine?

I have an issue and I'd like to use the Interactive console you get on the local dev server (http://localhost:8080/%5Fah/admin) on the cloud server to make sure a query is working as I expect. I read before you can enable it - but how is it done? ...

In Django (on Google App Engine), should I call main.py when running Unit Tests?

I have a Django application on the Google App Engine, and I would like to start writing unit tests. But I am not sure how to set-up my tests. When I run my tests, I get the following error: EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined. ERROR: Module: tests could not be imported. This seems pretty straigh...

How do I unit test Django views on the Google App Engine?

I am struggling to run unit tests using the Django Client class on the Google App Engine. I downloaded GAEUnit (v2.0a for Django) and I am trying to use that as my testing framework (maybe I should rather be using something else?) I copy all the GAEUnit files into my project root as instructed, and I modify my app.yaml file. Currently a...

GAE Image Posting to Datastore through Django Form

I'm working on a little side project that involves posting an avatar to a users profile page, seems straight forward enough. I'm following the instructions from the "Using the Images Python API" on the GAE web site. The sample they provide doesn't seem to work with Django though. Searching around here, I found a thread with a similar i...

google app engine OR filter

I want to do an OR filter within google app engine. For example: class MyModel(db.Model): name = db.StringPropery() description = db. StringPropery() The following will return all "MyModel" instances with name = steve AND description = "some text" results = MyModel.all().filter("name =", "steve").filter("description =","some...

How-to create a REST service with Google App Engine and Python?

I want to create a RESTFUL web service that gets a request via the URL that is accessed and then returns the appropriate document for that client. For example, if it was a weather app and I wanted to get the weather for Atlanta through a web browser, I would access http://weatherapp.appspot.com/temperature/Atlanta and it would return an...

appengine: how to use validator in Class:Property?

described in http://code.google.com/intl/en/appengine/docs/python/datastore/propertyclass.html#Property but there is no example code. i code sth like: class Model(db.Model): email = db.EmailProperty(validator=clean_email) def clean_email(self,value): if ... ...

django unprintable templatesyntaxerror object caused by urlconf?

I'm trying to get a django project set up, and I seem to be having trouble with my urlconf. I'm not sure what the deal is, and the error below isn't entirely helpful to me. I don't think it really has anything to do with template rendering, actually, because I stepped through the execution path until just before the render_to_response ...

Printing several binary data fields from Google DataStore?

I'm using Google App Engine and python for a web service. Some of the models (tables) I have in my web service have several binary data fields in them, and I'd like to present this data to a computer requesting it, all fields at the same time. Now, the problem is I don't know how to write it out in a way that the other computer knows whe...

In Google App Engine, what happens when I change the Class related to a persisted object?

My model class looks as follows: from google.appengine.ext import db class SnapShotBase(db.Model): ''' The base class from which all entity snapshots will inherit. ''' version = db.IntegerProperty() def __init__(self): pass Imagine I already have persisted instances of this class in my bigtable datastore. ...

gql query on date

How do I apply a GQL query such that it lists the user_name in the UserInformation model table of those who have logged in within the last 3 days? ...

upload file with java servlet to app engine

Hi I would like to be able to have the user upload short audio samples to my app-engine application and store them in the provided datastore. I'm using the Java servlet version. My problem is using a multi-part form to upload a file. Using the normal request.getParameter() method returns null with multi-part forms. I have read abo...

iphone table view delete entry and update app engine db

Hi, I have a tableview with data, that i post to the app engine database. Whenever i delete an entry in the table, i want to delelte the item in the app engine database as well. How do i know which entry to delete? I was thinking of this: for every item i save in the GAE store, i make a reference to a model with the iphone unique devi...

gwt and dynamic server processing. Do they belong together?

I am eager to build an application with Gwt and App Engine. I'm more familiar with App Engine: creating dynamic html pages with servlets and jsp's. I'm wondering however, if this type of application technology belongs with GWT? The two examples I can foresee being a problem are login and database retrieval. For user log-in, my curr...

django template url function not matching in app

I have a django project set up with an app called pub. I'm trying to set it up so that I can include urls.py from each app (there will be more as I go) in the top-level urls.py. I've also got a template that uses the 'url' function to resolve a url on a view, defined in the openidgae module. The problem is that after the httprequest i...

java.util.Collections$UnmodifiableMap problem : code included

Hello :-) I am building a facebook platform web app using GWT and hosting it on App Engine. I am adding validation code that uses supplied query string parameters in the callback url. GWT allows me to get these parameters by calling Window.Location.getParameterMap() and the returned Map is immutable. I may be wrong however I think thi...

In a BigTable datastore, with regards to concurrency, how do I "lock" an entity?

I am not sure how to handle this in a BigTable datastore. Imagine the following example (just to explain the concept. The example does not match my actual data model): I have a Counter entity that keeps track of the number of Transactions in my dataStore. Let's say the current 'count' is 100. Now two web requests read this value at t...

What is the performance cost of named keys or "pre-generated" keys in Google App Engine?

If you used named keys in Google App Engine, does this incur any additional cost? Put another way, is it any more expensive to create a new entity with a named key rather than a randomly generated id? In a similar line of reasoning, I note that you can ask Google App Engine to give you a set of keys that will not be used by Google App E...