google-app-engine

Best Google App Engine Forum Application

Hi, what is the best Forum application for Google App Engine? ...

Cookies using App Engine and Restlets

I would like to store an authentication token in a session cookie. I'm using google app engine and restlets. I've done a few searches, but I have no idea even where to begin. I would like to: Store the token in a cookie Read the cookie when the client makes a request through restlet Also, is the session cookie the correct place to...

Appengine create and export yaml file

Hi, I´m having trouble in creating a file and export to .yaml. I´m using Google App Engine with Python 2.5. Don´t understand the Yaml doc´s, it makes me confused. What i want is to create a file and save it. It´s necessary to get entities from Models. class SaveYAML(webapp.RequestHandler): def post(self): user = db.Query(m...

GAE Servlet XML Response. How?

Hi, I need to send XML response from my GAE servlet. What I already have is: - An instance of org.w3c.dom.Document populated with data - HttpServletResponse (that gives me either a PrintWriter or a ServletOutputStream) If XMLSerializer were whitelisted in GAE, I could finish the work. ..but it's not. My question is: How to cook the fo...

Best way to pull GAE Datastore data as a list

I'm looking for the best way to pull info from the datastore into a list (with the intention of outputting to ReportLab to generate a pdf). Is there a way to do it besides looping through the output, and creating a list from it? ...

Servlet unavailable in AppEngine with Android Client

I am getting the following info log in GAE's console: "POST /xxx HTTP/1.1" 200 133 - "Apache-HttpClient/UNAVAILABLE (java 1.4),gzip(gfe)" I can not understand if the servlet is not available, why is "200" being returned. I checked web.xml file for servlet mapping and they seem fine. What else could be causing it. Is it even an error on ...

How to generate large files (PDF and CSV) using AppEngine and Datastore?

When I first started developing this project, there was no requirement for generating large files, however it is now a deliverable. Long story short, GAE just doesn't play nice with any large scale data manipulation or content generation. The lack of file storage aside, even something as simple as generating a pdf with ReportLab with 1...

Mako templates with Google App Engine

I want to use Mako templates with GAE instead of Django templates. I found this post http://blog.pansapiens.com/2008/06/24/mako-templates-in-google-app-engine-seems-to-work-for-me/ I downloaded Mako from this page by using easy_install http://www.makotemplates.org/download.html But that gave me a "beaker" file c:\python26\lib\site-pa...

Manipulating an image on App Engine

I'm trying to draw text to an image from Java in the Google App engine, but I've found no methods (since the java.awt.image.* isn't whitelisted) to do it with. I'm also trying to "layer" one image on top of another, which I can't figure out how to do. Is there any way to draw text on an image or overlay one image over another in App Eng...

How can I query for records based on an attribute of a ReferenceProperty? (Django on App Engine)

If I have the following models in a Python (+ Django) App Engine app: class Album(db.Model): private = db.BooleanProperty() ... class Photo(db.Model): album = db.ReferenceProperty(Album) title = db.StringProperty() ...how can I retrieve all Photos that belong to a public Album (that is, an Album with private == False)? To fu...

Is it technically possible to take a screenshot of a website programmatically?

Do you think is technically possible to take a screeshot of a website programmatically? I would like to craft a scheduled Python task that crawls a list of websites taking an homepage screenshot of them. Do you think is technically feasible or do you know third party website that offer a service like that (Input: url --> Output: screen...

Any successful website built on top of Google App Engine?

I would like to know whether there are any websites (not toy projects) that have been successfully built on top of GAE (excluding google) using whatever programming languages or frameworks that are available. ...

Captcha With Google AppEngine

I have a website where i want to put a custom made captcha, can't use online captcha services due to layout needs. It runs on google appengine. Does appengine API has a something for writing characters on a given image? I went through appengine Python Image API but it doesnot seems to be of much help. Any suggestions how to generate ca...

Getting the "Closest" Value out of the Datastore

What is the recommended (read most efficient) way to obtain a single entity out of the datastore based on a value that's closest to one provided. For example, I have the following DataModel: class MyObject(db.Model): someValue = db.IntegerProperty() shortDescription = db.TextProperty() During a GET a value is passed in, I wou...

How to retrieve the current server side datetime in Google App Engine with Java

So this is my code to generate the current datetime for make an insertion in the google table jiql_registrations Date fecha = new Date(); DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); try { Conn = ConexionGoogle.obtenerConexion(); Statement Stmt = Conn.createStatement(); Stm...

How to use refresh_access_token in the Yahoo Social Python SDK

I'm trying to use the Yahoo Social Python SDK to get a users contacts through oAuth. This is for a webapp running on App Engine. SO, I have everything set up to run through the oAuth dance, exchanging consumer keys and verifiers and all that jazz. I store the token and can reuse it to retrieve a users contacts until the token the expires...

Appengine - Can a user import Yaml or Json file to update datastore with new values?

Imagine this scenario: I made a small application in Python for Google App Engine for general use. Users can login to my app, update their profile, change address and change the picture among many other things. A user can export the models to PDF, YAML and JSON, save the file on his computer. You can download any available format...

Google App Engine, GData & Picasa

Is there more comprehensive sample of creating Google App Engine App using GData Phyton Library to interact with Picasa Web Album, other than google guide from GAE here: http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_python.html Thanks Guys ...

How to prevent App Engine from merging multiple headers with the same name?

App Engine seems to always merge multiple headers with the same name into one. For example if one sets this in CGI print "Set-Cookie: foo=bar" print "Set-Cookie: spam=egg" What is actually delivered to the browser is Set-Cookie: foo=bar, spam=egg which is of course wrong. The correct solution is either Set-Cookie: foo=bar; spam=eg...

Google App Engine development server is slow to start up when using WingIDE

I'm developing on Google App Engine. I am using WingIDE (a python IDE) to debug on the development server. I have several thousand entities in my datastore and I can see that when the development server starts up, it has to go through DatastoreFileStub.Read() and do something which each entity. The problem is, when I run the development...