google-app-engine

JDO, GAE: Load object group by child's key

I have owned one-to-many relationship between two objects: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class AccessInfo { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private com.google.appengine.api.datastore.Key keyInternal; ... @Persistent private PollIn...

Case insensitive where clause in gql query for StringProperty

Using the google appengine datastore, is there a way to perform a gql query that specifies a WHERE clause on a StringProperty datatype that is case insensitive? I am not always sure what case the value will be in. The docs specify that the where is case sensitive for my values, is there a way to make this insensitive? for instance the...

Is it to possible create a simple chat facility using XMPP with Google App Engine?

I would like to create a web IM chat system using Google App Engine using XMPP possibly. It would allow users of a social network to talk with each other. Is this possible using GAE? I haven't used GAE before. Does anybody know of any good examples/code which I could look into to get started? ...

How do I tell why Django is ignoring the Accept-Language header?

I have a Django app (on Google App Engine) that I wish to internationalize. settings.py: USE_I18N = True LANGUAGE_CODE = 'en' # Restrict supported languages (and JS media generation) LANGUAGES = ( ('en', 'English'), ('fr', 'French'), ) MIDDLEWARE_CLASSES = ( 'ragendja.middleware.ErrorMiddleware', 'django.contrib.sessions.midd...

module to abstract limitations of GQL

Hello, I am after a Python module for Google App Engine that abstracts away limitations of the GQL. Specifically I want to store big files (> 1MB) and retrieve all records for a model (> 1000). I have my own code that handles this at present but would prefer to build on existing work, if available. Thanks ...

Unable to get results when passing a string via parameter substitution in gql query

Hi, I am able to properly pass a string variable to the gqlquery through parameter substitution, here's the code i've tried to use; user_name = self.request.get('username') #retrieved from UI p = models.UserDetails.all().filter('user_name = ', user_name).fetch(1) I don't get any results and the query fails silently. But when I hard c...

App Engine: What is the fastest way to check if my datastore query returns any result?

I like to check if there is any result for my datastore query in the Google App Engine Datastore. This is my query: users = User.all() users.filter("hash =", current_user_hash) What is the fastest and most elegant way to check if my query returns any result? PS: I know a way to do so, but I'm very unsure if it is very efficient... ...

Query in a transaction with an ancestor filter in Google App Engine (Java)

The Java documentation says that an app can perform a query during a transaction, but only if it includes an ancestor filter, but there is no documentation for how to do it. Can anyone provide some example code that shows how to do this in the most concise way possible? ...

Is it possible to load child object from JDO? (Java, Google App Engine)

I persist in storage an object with a child inside it. There is an "Owned One-to-One Relationships" (http://code.google.com/appengine/docs/java/datastore/relationships.html#Owned%5FOne%5Fto%5FOne%5FRelationships). Now I want to load objects but I have ONLY id of child's object. Is it possible? Child c = new Child("chld23", "I'm a c...

GWT + JDO + ArrayList

Hi, I'm getting a Null ArrayList in a program i'm developing. For testing purposes I created this really small example that still has the same problem. I already tried diferent Primary Keys, but the problem persists. Any ideas or suggestions? 1-Employee class @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Em...

Passing arguments to a handler in app.yaml

My app.yaml wants to do this: handlers: - url: /process/(.*) script: process.py \1 So that I can pass an argument to the process.py script. This was working in the SDK, but oes not seem to be possible in the production servers, possibly because they are looking for a file to execute "process.py arg" which does not exist. Can an...

Accessing POST params with same name in python

I need to get values of these check boxes with same name through HTTP "POST". <input type="checkbox" id="dde" name="dept[]" value="dde"/> <input type="checkbox" id="dre" name="dept[]" value="dre"/> <input type="checkbox" id="iid" name="dept[]" value="iid"/> How to get these values in python using self.request.get() method? ...

how should i store and retrieve images with django on appengine?

I'm using appengine patch with django 1.1 (came with appengine patch). I have a page with multiple columns and multiple files. In the admin I want to be able to upload an image and write text in a column like so: This is the sory of bugs bunny ... <img src="/pages/file/agphZXAtc2FtcGxlchALEgpwYWdlc19maWxlGAUM/" alt="didnt work" /> some ...

Filtering by dates in Google App Engine's Datastore

I'm having some issues trying to filter a set of objets by their date. Right now I can get all of a user's transactions like this: > t = Transaction.all().filter("client_email =", "some_email").filter("application_id =", "foo").fetch(100) > len(t) # => 4 Now, if I want to set up some date filters: > min = datetime.datetime(2009, 2, 3...

How does Google App Engine infrastructure is fault tolerant?

Hi everybody, I am actually implementing a web application on Google App Engine. This has taken me for the moment a huge time in re-designing the database and the application through GAE requirements and best practices. My problem is this: How can I be sure that GAE is fault tolerant, or at what degree is it fault tolerant? I didn't ...

Google Appengine custom authentication

I would like to test appengine. At this moment it is not clear to me if there are libraries that support custom authentication. I want the user to be able to create an account on the site without having to have a google (or any other) account. Does that kind of libraries exists or do you have to write it from scratch? Can anyone prov...

Recommended Java frameworks for Google App Engine?

I'm new to google appengine and java webprogramming (jsp/servlets/frameworks) (not to webprogramming or java). I was wondering if appengine supported java frameworks and, if so, which of them are recomandable? Are there any frameworks that support authentication? Thanks ...

Can I add Runtime Properties to a Python App Engine App?

Coming from a java background I'm used to having a bunch of properties files I can swap round at runtime dependent on what server I'm running on e.g. dev/production. Is there a method in python to do similar, specifically on Google's App Engine framework? At the minute I have them defined in .py files, obviously I'd like a better separ...

Using Google AppEngine as a "cache" for personal websites (wordpress blogs, wikis)

I read an article of an indie game developer who is using Google AppEngine to cache his main site and blog, to protect provide high-availability during traffic spikes (Digg, Slashdot effect). Wolfire Blog - Google App Engine for Indie Developers There's not a lot of detail on the exactly what they developed in Python on Google AppEngin...

Deleting from a Set in Google App Engine is not being persisted

I see a similar question in Problems while saving a pre-persisted object in Google App Engine (Java), and indeed I was not calling close() on my persistence manager. However, I am now calling close, but my object update is not being persisted. Specifically, I want to remove an element from a Set, and save that smaller set. Here is the...