google-app-engine

Bulkloading schema less entities on Google App Engine

The new bulkloader added into SDK 1.3.4 works great for models that have a schema. For models inheriting db.Expando (or loosely defined schemas) i would like to understand what i would have to do to bulk upload them. I defined a custom connector, that implemented the ConnectorInterface and converted my data to the python dict required. ...

is there a facebook user login framework for gae

I want to enable someone login using facebook, Is there a framework that you have used to do this? Thanks ...

How to change order in ordered+persisted collection?

I just need to change order of items in a (previously persisted) ordered collection... I tried simply passing the re-arranged collection to a setter: after committing a transaction the collection is gone. Then I tried to clear() the existing collection and addAll() afterwards: clear() makes persistent manager to mark all the elements as...

What's the best way to send user-inputted text via AJAX to Google App Engine?

I'm developing in Google App Engine (python sdk) and I want to use jQuery to send an Ajax request to store an answer to a question. What is the best way to send this data to the server? Currently I have: function storeItem(question_id) { var answerInputControl = ".input_answer_"+question_id; var answer_text = $(answerI...

Is it possible to add headers to emails being sent by app-engine?

I'm currently putting the finishing touches to an application for a client, this application sends daily emails to subscribers, is it possible to add custom headers to the email so that certain variables can be tracked, like day number (X-Day-Number) etc... ...

best gae framework for openid user login..

i want to enable openid user login my site. which is best framework to do it ? thanks ...

AppEngine dev_appserver.py not showing any outputs

I installed Python2.6 and Google App Engine (GAE). I realized that GAE does not run on 2.6, so I installed 2.5 as well. Now I have a very basic code as follows and it does not show on the localhost:8080 I typed the following in cmd.exe under my dir testapps. c:\Users\myname\testapps>"\Program Files\Google\google_appengine\dev_appser...

How can I Export local datastore data to Production Google App Engine Datastore

Hi I wanted to export my local datastore data to my google appengine application datastore. Is there any direct and short way to do it. ...

Updating Model Schema in Google App Engine?

Google is proposing changing one entry at a time to the default values .... http://code.google.com/appengine/articles/update_schema.html I have a model with a million rows and doing this with a web browser will take me ages. Another option is to run this using task queues but this will cost me a lot of cpu time any easy way to do th...

Searching through Model relationships in Google App Engine?

I have 2 models: class Parent (db.Model) : data = db.StringProperty() class Child1 (db.Model) : parent = db.ReferenceProperty(Parent) childData = db.StringProperty() class Child2 (db.Model) : parent = db.ReferenceProperty(Parent) childData2 = db.StringProperty() class Child3 (db.Model) : parent = db.ReferenceProperty(Par...

how to fetch more than 1000 entities NON keybased?

If I should be approaching this problem through a different method, please suggest so. I am creating an item based collaborative filter. I populate the db with the LinkRating2 class and for each link there are more than a 1000 users that I need to call and collect their ratings to perform calculations which I then use to create another...

How do i execute system commands in google app engine?

I am trying to execute simple system command via my servlet on google app engine. I'm not trying anything dangerous, just looking for simple stuff grep, sed, wget, find, etc. Using java's Runtime class i keep getting access denied exceptions. Do i have to get permission from google of some kind or are shell commands banned period? ...

What can cause extremely slow 'merge' operations in Google app-engine (JPA)?

I'm using JPA on Google app-engine datastore and some of the 'merge' operations are extremely slow. One of them usually takes more that 16 seconds. What can cause this? --Update:A major part of the problem was caused by a concurrency issue. Now it's 3-5 seconds. (Just for the last 5 lines of code) The code is something like this: Paren...

Friendly URLs in Google App Engine

I'm trying to build a Friendly URL lookup method in GAE and Python. Have anyone done this? I've got it working but it feels VERY shaky. How it works is that it takes the path (let's say /foo/bar/) and splits it to a list. Takes the last element in the list and query the database for a match. Now comes some headaches. If there is more ...

Google Datastore low-level api query by key property

I'm using the low-level google datastore api and I want to query by the key property and another property (let's call it category). I need to query based on a list of keys for which I'll use the IN operator. I know that the max. number of values you can provide for the IN clause is 30. I have 2 questions: Does the limit of 30 IN val...

How can I pass an object as a parameter in the google app engine RPC flow?

I'm building a pretty basic app, and one thing I want to do is pass an object as a parameter up through the service -> async -> impl instead of passing up a million separate parameters. so in async, I do something like this: import shared.Profile; ... public interface ProfileServiceAsync { public void addProfile(Profile inProf, Asy...

I want to build a Google-friendly web app, where should I start?

I have only very basic experience with HTML/CSS and have quite a bit of experience with testing software and web apps from a consumer perspective. I'd love to launch a web application that plays nicely with Google services, similar to some of the apps you'd find on the Google Apps Marketplace, such as ManyMoon, time to note, Socialwok, e...

Google App Engine and Git best practices

I'm developing a small pet project on Google App Engine and i would like to keep code under source control using github; this will allow a friend of mine to checkout and modify the sources. I just have a directory with all sources (call it PetProject) and Google App Engine development server points to that directory. Is it correct to ...

GWT on Python App Engine

Hi, I have a python app engine code (matured backend) - and we are now planning to have a front end for that code. I was wondering whether it is possible to implement GWT as the front end. Even though Alex Martelli in this post [1] mentions it is not possible, a comment to that post suggests that it is indeed possible using rpc over...

Django get() query not working

this_category = Category.objects.get(name=cat_name) gives error: get() takes exactly 2 non-keyword arguments (1 given) I am using the appengine helper, so maybe that is causing problems. Category is my model. Category.objects.all() works fine. Filter is also similarily not working. Thanks, ...