google-app-engine

Fetching the nth element from app engine datastore

I'm looking for a effective and scalable way of doing the following with the java low level API. I have a query with some sort orders and i would like to fetch the Nth entity. Using the offset argument doesn't seem like a good idea. EDIT Background: I'm trying to write an abstraction layer for DS with a Memcache. The data stored in the ...

JSTL Google App Engine Problem

My problem is, that when the <c:if tag is reached the following problem occurs. I am using Spring on google app engine. java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; at javax.servlet.jsp.jstl.core.LoopTagSupport.unExposeVariables(LoopTagSupport.java:620) at javax.servlet.jsp.js...

Running wave robot inside django app engine patched webapp

Hey, I got a google wave python robot running with an existing django app engine web app. all works well apart from one thing. for some reason i am unable to access my datastore which is the same datastore for the django webapp. i want to read data and store data to the django datastore from the robot. what can i do? ...

How can I fix this bug? BadKeyError: Name must be string type.

Hey everyone. I am using Appengine/Python and I haven't been able to fix a BadKeyError bug for the last 5 hours. I'm wondering if someone can help me figure it out. The part of the app that is causing the bug is a controller that processes votes done by users. Actor_id is the key of the user and object_id is the key of the object that is...

Google App Engine: "Cannot create a file when that file already exists"

I'm running the Google App Engine devserver 1.3.3 on Windows 7. Usually, this method works fine, but this time it gave an error: def _deleteType(type): results = type.all().fetch(1000) while results: db.delete(results) results = type.all().fetch(1000) The error: File "src\modelutils.py", line 38, in _delete...

Import GData library for use with Google App Engine

Hi everyone I'm having hard time trying to figure out how to import a Gdata library into my eclipse build to use with Google App Engine(Java) ...

Google App Engine Cache List in Session Variable

Hi, I have a question about Google App Engine java implementation. I have been trying to port over an application to google app engine from mysql/tomcat. I have changed and tested most of the code on the google app engine local environment. The application works on the local google app engine but when it is deployed it does not work....

Persistence in Google App Engine (Java) - accessing data outside the application

I'm on the process of designing a web application based on Google App Engine (Java) platform. I'm basically from relational database world and I'm trying to understand how to use the persistence that GAE provides. So my questions is, in RDBMS, I can easily access my data without going through my application. i.e, I can use an SQL clien...

Google application engine, maximum number of static files?

Hi All, I am developing an application in google application engine which would have a user profiles kind of feature. I was going through the Google App's online tutorial where I found that the maximum number of static files (app files and static files) should not exceed 3000. I am afraid whether the user's would be able to upload their...

How to redirect browser from POST request to GET a new location? servlet

I'm using GAE with Java servlets. I have a form POST request, and I have to redirect the browser to a new location with GET method. How can I do this? ...

Does having large number of properties in an Entity effect datastore read/write performance?

I have couple of entities with properties numbering in the range of 40 - 50. All these properties are unindexed. These entities are a part of a larger entitygroup tree structure, and are always retrieved by using their key. None of the properties (except the key property) are indexed. I am using Objectify to work with entities on BigTabl...

Is it safe to cache DatastoreService object in static field? (GAE Java)

I have a code snippet: private static DatastoreService _db; public static DatastoreService db() throws IOException { if(_db==null) _db = DatastoreServiceFactory.getDatastoreService(); return _db; } Is this safe approach? I cached the DatastoreService object statically and re-used over a single servlet execution. However, I ha...

Running .exe on Server Side

Hi, I am trying to run a .exe from the server side on GWT but it is giving me a access denied error.Exact error is :- java.security.AccessControlException: access denied (java.io.FilePermission <> execute) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermi...

App Engine - How to set "Vary: Accept-Encoding" header for static files.

Google Page Speed says. The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header: for my css and js files. How can I set google app engine to do this? ...

how to show a html page in a js file on google app engine .

$('#upload').click(function(){ $('#main .right').html("{% extends 'a.html' %}") }) but this is error , how to make this code running . thanks ...

how to extends the parent html page on google app engine

templates | ....a.html |.....admin |..... index.html |..... b.html in google app engine templates, i can use this to extends b.html in index.html: {% extends 'b.html' %} but how to extends a.html in index.html. thanks ...

Python: Install 2.5.5?

Here is the page I found to get 2.5.5: http://www.python.org/download/releases/2.5.5/ (I need it for Google App Engine.) All I see is source files, not an installer. I'm not entirely sure how to build them on my windows machine. What do I do? (Open in Visual Studio, build there?) Or is there an installer I can use? ...

Google App Engine: UnicodeDecode Error in bulk data upload

I'm getting an odd error with Google App Engine devserver 1.3.5, and Python 2.5.4, on Windows. A sample row in the CSV: EQS,550,foobar,"<some><html><garbage /></html></some>",odp,Ti4=,http://url.com,success The error: ..................................................................................................................[E...

Comparing if datetime.datetime exists or None

I'm running a small app on Google App Engine with Python. In the model I have property of of type DateTimeProperty, which is datetime.datetime. When it's created there is no value, None. I want compare if that datetime.datetime is None, but I can't. if object.updated_date is None or object.updated_date >= past: object.updated_date = n...

GQL: Find all entities that contain a substring

I have some entities that have a StringProperty and I would like to query for all the entities that match a substring. Is there a way to do that using just GQL? For example, if my datastore looks like this: ID/Name question_text -------------------------------------------------------------- 3001 I like to eat chicken. 3020 ...