google-app-engine

Filtering models with ReferenceProperties

I'm using google app engine, and am having trouble writing querys to filter ReferenceProperties. eg. class Group(db.Model): name = db.StringProperty(required=True) creator = db.ReferenceProperty(User) class GroupMember(db.Model): group = db.ReferenceProperty(Group) user = db.ReferenceProperty(User) And I have tried w...

ImportError when using Google App Engine

When I add the following line to Google's helloworld example: from reportlab.pdfgen import canvas I get the following error: <type 'exceptions.ImportError'>: No module named reportlab.pdfgen I can get at the reportlab.pdfgen library from the python console. Why can't I get at it from google's dev_appserver? ...

MultiValueDictKeyError Using Appengine SDK and Django for File Upload

Can anyone help me spot my problem here: I'm trying to implement a file upload routine using appengine and django, and I've run into a MultiValueDictKeyError error. It appears that the file is not making it from the webpage to the server. Some part of this is a learning exercise, so I don't want to use a djangoform to process the data ...

generated template not rendering correctly

So I have this code in a google app engine template: <select name='voter'> {% for voter in allowed_voters %} <option {% ifequal voter last_voter %}selected="yes" {% endifequal %} value='{{voter}}'>{{voter}}</option> {% endfor %} </select> The page doesn't render with the correct person selected, defaulting instead to the ...

AppEngine and Django: including a template file

As the title suggests, I'm using Google App Engine and Django. I have quite a bit of identical code across my templates and would like to reduce this by including template files. So, in my main application directory I have the python handler file, the main template, and the template I want to include in my main template. I would have t...

Dynamically choose which properties to write to Appengine Datastore

Has anyone tried to dynamically select which properties they want to write to an entity on appengine? For example: I have a web form with 5 fields, and any given user will fill out some subset of those fields. I POST only the fields with data to the server (e.g. Fields 1,2,4). On the server side, how do I elegantly write only properties...

Google App Engine with ClientLogin Interface for Objective-C

I'm experiencing the same problem in this previous stackoverflow.com post. Specifically, I seem to be able to get the "Auth" token correctly, but attempts to use it in the header when I access later pages still just return me the login page's HTML. Following links related to this post, I've determined that you need to make a subsequen...

How to convert XML to JSON in Python?

I'm doing some work on App Engine and I need to convert an XML document being retrieved from a remote server into an equivalent JSON object. I'm using xml.dom.minidom to parse the XML data being returned by urlfetch. I'm also trying to use django.utils.simplejson to convert the parsed XML document into JSON. I'm completely at a loss as ...

Problem with Flash ExternalInterface on Google App Engine

I've been struggling with this for the past couple hours now and I really don't know what could be wrong. I'm simply trying to get Javascript to communicate text with Flash. I found this great example with this source http://blog.circlecube.com/wp-content/uploads/2008/02/ActionscriptJavascriptCommunication.zip I ran the html file local...

Which programming language Google app engine is most likely to work with next and why?

Their roadmap says their next release will be in March 2009, and that they'll be adding a new 'runtime language'. I'm hoping its either Java or PHP but realy not sure, and would like to know which language is the most probable so i can plan accordingly for a project I plan on hosting with google app engine. Any ideas? ...

Are Apps for the Google App Engine usable on other servers?

How portable are applications for the Google App Engine? Are these bound forever on the GAE? ...

How to list the files in a static directory?

Hello, I am playing with Google App Engine and Python and I cannot list the files of a static directory. Below is the code I currently use. app.yaml - url: /data static_dir: data Python code to list the files myFiles = [] for root, dirs, files in os.walk(os.path.join(os.path.dirname(__file__), 'data/') ): for name in files: ...

What CMS runs on Google App Engine?

Is it possible to deploy any CMS (Content Management System) using Google App Engine? Wikipedia lists 4 Python CMSes and one of them is Django based. Do you know any way to make any of them to work on App Engine? My votes: Python GuteCMS (revision 11 10/28/2009) Too simple. Barely usable. cpedialog (both 1.0 and 2.0 beta) Too simp...

Architecture guidance for appengine websites?

I've created unmaintainable websites using PHP because it was so easy to do things quick and dirty. I don't want to do the same thing with Python/Django on Google's appengine. Is there any good architecture references for creating websites using Django and appengine? (E.g. where to put business logic, where to put data access logic, ...

about one to many relationship in datastore and dereferncing in google app engine?

i have a one to many relationship between two entities the first one is a satellite and the second one is channel and the satellite form returns a satellite name which i want to appear in another html page with the channel data where you can say that this channel is related to that satellite how to make this ...

How can I access files uploaded with Yui uploader 2.6.0 from a server running Google App Engine

I am using the Yui Uploader 2.6.0 advanced example and apparently it is working fine on the client side. Basically the uploadAll function in javascript passes to the uploader the url containing the script to handle the uploaded file/s on the server: function upload() { if (fileList != null) { uploader.setSimUploadLimit(parseInt(docum...

CDN options for image resizing

Background: I working on an application on Google App Engine. Its been going really well until I hit one of their limitations in file size -- 1MB. One of the components of my application resizes images, which have been uploaded by users. The files are directly uploaded to S3 (http://developer.amazonwebservices.com/connect/entry.jspa?ext...

Best opensource IDE for building applications on Google App Engine?

Looking to dabble with GAE and python, and I'd like to know what are some of the best tools for this - thanks! ...

Query distinct list of choices for Django form with App Engine Datastore

I've been trying to figure this out for hours across a couple of days, and can not get it to work. I've been everywhere. I'll continue trying to figure it out, but was hoping for a quicker solution. I'm using App Engine datastore + Django. Using a query in a view and custom forms, I was able to get a list to the form but then I was not ...

Does anyone know if you can use Amazon's s3 on a site developed on the Google App Engine?

Would one be violating the the terms of agreement with Google App Engine if one were to use Amazon's S3 service with Google App Engine? I do know there is restrictions on what you can and can't do but I was not sure of this. Having these two combined features, one could provide one heck of a system at a relatively low cost compared to h...