google-app-engine

modelling the google datastore/python

Hi I am trying to build an application which has models resembling something like the below ones:-(While it would be easy to merge the two models into one and use them , but that is not feasible in the actual app) class User(db.Model): username=db.StringProperty() email=db.StringProperty() class UserLikes(db.Model): use...

Google App Engine ( Java ) : URL Fetch Response too large problems

Hi there! I'm trying to build some sort of webservice on google apps. Now the problem is, I need to get data from a website (HTML Scraping). The request looks like : URL url = new URL(p_url); con = (HttpURLConnection) url.openConnection(); InputStreamReader in = new InputStreamReader(con.getInputStream()); BufferedReader reader = ne...

Uploading a PDF file to Google Docs generated by pdfjet on GAE/J

Hi, I need to upload a PDF file to users google docs which is generated by pdfjet on google app engine. I figure out to generate pdf using pdfjet for gae/j. pdfjet uses streams to create the pdf. Is there anyway to convert stream to file so I can upload to users google docs. I tried gaevfs but couldn't make it work. I can use another pd...

Grails Picasa Plug-in with google app-engine

Hi, Has anybody used Grails Picasa Plug-in running on google appengine? Below are the things i did I have hosted my website on appengine with grails, i was trying to add the picasa plugin to it. Which in turn made me add other dependent plugins like, 1.Oauth 2.jquery 3.spring-events After installing the plugins , i also added google ...

Can Google App Engine use a third party SMTP server?

Google App Engine currently limits you to 2,000 emails per day (for free) via their API. I am trying to find a definitive answer if it is possible to use a third-party system if you need to send more. I know that they disallow raw sockets, so I would assume that there might be trouble with this approach... but surely I'm not the firs...

Google apps login file

In google app engine, there is file called login. I need to modify this login file. It is in my local host, but I can't find out where it is stored. Can anybody help me to find the solution? ...

How to Profile Google App Engine Java Servlet

I have a java google app engine servlet that writes to the datastore amongst other things. It runs really fast locally. However, on app engine server each request nears 2 seconds (event after ramp up). How can I go about profiling my servlet to identify which pieces of my code are taking long? So far the only way I can think of is to lo...

Error in Django-nonrel : 'ModelOptions' object has no attribute 'db_table'

I tried to install the django-messages 3rd party application to my Django-nonrel / App Engine project. However it threw the error: 'ModelOptions' object has no attribute 'db_table' Request Method: GET Request URL: http://localhost:8090/ Django Version: 1.3 pre-alpha Exception Type: AttributeError Exception Value: 'ModelOptions'...

How can I distinguish lists from strings in django templates

I'm developing a project on Google AppEngine, using Django templates, so I have to use tags like {{ aitem.Author }} to print content within my HTML template. Author, however, can either be a string or a list object, and I have no way to tell it in advance. When the Author is a list and I try to print it on my template, I get the ugly re...

Using AppEngine-MapReduce on Google App Engine, what is the easiest way to analyze entities for a specific date range?

I am trying to use AppEngine-MapReduce. I understand how to perform an operation over all entities of some entity_kind, but what is the easiest way to only operate on entities over a data range when the entity has a date attribute? Is there a simple way to pass parameters to the mapper? For example, what if I only wanted to delete entit...

Getting the Tasks in a Google App Engine TaskQueue

I know you can view the currently queued and running tasks in the Dashboard or development server console. However, is there any way to get that list programmatically? The docs only describe how to add tasks to the queue, but not how to list and/or cancel them. In python please. ...

GAE organizing data structure problem

Ok. I'm working with GAE. And i want create something like this: I have types "group" "topic" "tag": each "group" can have as many "topics" as needed each "topic" can have as many "tags" as needed each "group" can have as many "tags" as needed it's something like circle. right now i have something like this: class TopicGroup(db.Mo...

Unable to create superuser on google app engine

I am working on a django project and have used django nonrel to deploy on google app engine. However when I try to create a super user using the command "manage.py remote create superuser", I get the following error, Please let me know if anyone knows the reason for this Username: newuser Traceback (most recent call last): File "C:\SV...

How do I get user email using Facebook Graph API in GAE Python?

I'm using Facebook Graph API on Google App Engine. I was able to fetch all the basic info from an user. However when I tried to fetch any user info that requires permission, email for exemple, it always appears as None. I've followed the whole tutorial available at the developers blog. Here's my code: class User(db.Model): id = db....

How to add primitive property to existing java datastore entity to avoid null pointer exception

I have existing entities of a type in my gae datastore to which i want to add a new primitive property of primitive type "long": @Persistent private long bests = 0; When I do this, when i try to load existing entities which obviously don't have this property set yet, i get: java.lang.NullPointerException: Datastore entity wi...

GAE: what are the args of webapp.RequestHanderls get(*args)

I read the document http://code.google.com/appengine/docs/python/tools/webapp/requesthandlerclass.html but I cant find any information of the args parameters ...

creating upload interface to picasa web for google app engine python

Is there any sample application or code example for uploading image to picasa using GAE python. How to insert picasa uploaded image url into datastore then. Is there any effective way to do this? ...

Transaction collision for sequential insert on Google App Engine. Why?

I am inserting a set of records on Google App Engine. I insert them in batch to avoid deadline exceptions. When there is a large number of records (for example 1k) I always receive an unexpected: Transaction collision for entity group with key datastore_types.Key.from_path(u'GroupModel', u'root', _app=u'streamtomail'). R...

What is the easiest way (framework/library/call) to prevent Cross Site Scripting using Google App Engine (GAE)?

I'd like to store then later display user-entered content securely with minimal effort (my goal is a web app not writing a bunch of security-related code). EDIT: Google App Engine for Java ...

Appengine: How can I set another cookie when use google OAuth login logout.

I want set another cookie when user login, I use google.appenine.api.users.create_loginurl() to create the login url, it's /_ah/login, how can I extend this handler and add another cookie. The same as logout. ...