google-app-engine

Appengine (python) returns empty for valid queries

EDIT: Figured it out. For whatever reason the field in the index was called strWord instead of wordStr. I didn't notice because of the similarities. The file was auto generated, so I must have called the field that in a previous development version. I've got an app with around half a million 'records', each of which only stores three fi...

how to make site show different language(chinese and english) on google-app-engine.

if you using django ,you can use the "LC_MESSAGES -->django.po" but has any way to do this on gae ? and how to .. thanks and if i only want to use django's this features, how can i import it? ...

Override save, put, get, etc... methods in Google App Engine

Is it possible to override methids for db.Model in Google App Engine? I want to declare beforeSave, afterSave methods, etc.. to create automatic tagging system. I know there are hooks, but it seems to me a wrong way to solve this issue :) Thanks! ...

Decoding international chars in AppEngine

I'm making a small project in Google AppEngine but I'm having problems with international chars. My program takes data from the user through the url "page.html?data1&data2..." and stores it for displaying later. But when the user are using some international characters like åäö it gets coded as %F4, %F5 and %F6. I assume it is because o...

Avoid using InetAddress - Getting a raw IP address in network byte order

Hey, I am trying to use the MaxMind GeoLite Country database on the Google App Engine. However, I am having difficulty getting the Java API to work as it relies on the InetAddress class which is not available to use on the App Engine. However, I am not sure if there is a simple workaround as it appears it only uses the InetAddress clas...

How to open a file in the parent directory in python in AppEngine?

How to open a file in the parent directory in python in AppEngine? I have a python file module/mod.py with the following code f = open('../data.yml') z = yaml.load(f) f.close() data.yml is in the parent dir of module. The error I get is IOError: [Errno 13] file not accessible: '../data.yml' I am using AppEngine SDK 1.3.3. Is the...

App Engine Django Form Uniqueness Validation?

Is there a simpler way to use uniqueness validation with Django Forms in AppEngine? I understand that performance would be problem if we keep an uniqueness constraint but since the amount of data being added is very small performance is not a big concern, rather development time is a concern here. Any help is appreciated. ...

Google App Engine/GWT/Eclipse Plugin Newbie Question- how to autobuild client side resources?

Hi there, I'm tinkering with the default GWT application generated by the Google Eclipse plugin when I click the Google "New Web Application Project" button in Eclipse 3.5. This will no doubt be familiar to many of you.. basically there is an h1 title stating "Web Application Starter Project," a text field, and a Send button. What I'...

GWT: Populating a page from datastore using RPC is too slow

Is there a way to speed up the population of a page with GWT's UI elements which are generated from data loaded from the datastore? Can I avoid making the unnecessary RPC call when the page is loaded? More details about the problem I am experiencing: There is a page on which I generate a table with names and buttons for a list of entiti...

Do i have to store mails in db?

Are received mails stored somewhere in google app engine app or have i to store it with separated db class? ...

Is it OK to set "Cache-Control: public" when sending “304 Not Modified” for images stored in the datastore

After asking a question about sending “304 Not Modified” for images stored in the in the Google App Engine datastore, I now have a question about Cache-Control. My app now sends Last-Modified and Etag, but by default GAE alsto sends Cache-Control: no-cache. According to this page: The “no-cache” directive, according to the RFC, te...

Exposing a "dumbed-down", read-only instance of a Model in GAE

Does anyone know a clever way, in Google App Engine, to return a wrapped Model instance that only exposes a few of the original properties, and does not allow saving the instance back to the datastore? I'm not looking for ways of actually enforcing these rules, obviously it'll still be possible to change the instance by digging through ...

Google App Engine - Document Editor Creation/Tap Into Google Docs?

What is the best way to create a custom document editor in GAE? I'm making a website meant for a School Robotics Club (With support for any other organization - DRY). We currently use Google services for online collaboration, I'm wondering if there is a way to tap into Google Docs and allow users to edit a Google Document without using ...

Access to module denied from within GAE dev server

I am developing an app for GAE. Having installed the "feedparser" module with setuptools, I tried importing it (with "import feedparser") statement. However, the module does not load and when I look at the dev_appserver.py debug log on screen, I see the following: Access to module file denied: /usr/local/lib/python2.6/dist-packages/fee...

webapp and django framework

As far as I understand, the "Getting Started" guide of GAE with Python uses the webapp framework. However, it seems like it uses Django to render templates. Does that mean that I can use the Django template engine without using its application framework? ...

What is AppEngine database "cold start time"?

One of the more common complaints I have read about the AppEngine database (for Java) is that it is extremely slow when it come to "cold start time". What does this mean? And is it something I should be worried about? ...

How to send chat invite to an user using XMPP java ?

I am using google appengine (Java) I want my application to send chat invite to an user , how to do that ? ...

App Engine - Query using a class member as parameter

I have a simple class, relevant details below: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class SimpleCategory implements Serializable{ ... public static enum type{ Course, Category, Cuisine } @Persistent public type t; ... } I am attempting to query all SimpleCategory objects of the same type. pu...

Which web solution should I use for my project?

I'm going to create a fairly large (from my point of view anyway) web project with a friend. We will create a site with roads and other road related info. Our calculations is that we will have around 100k items in our database. Each item will contain some information like location, name etc. (about 30 thing each). We are counting on hav...

backup and restore options for GAE/J

I know that utilities for backup and restore are in the GAE future roadmap, but until then I need to do some backup/restore operations on the data store of my GAE/J application. I found some info on how to enable the remote API for GAE/J applications by setting up the RemoteServlet in the application's web.xml and then you should be ab...