google-app-engine

Problems passing class objects through GWT RPC

I've run through the Google Web Toolkit StockWatcher Tutorial using Eclipse and the Google Plugin, and I'm attempting to make some basic changes to it so I can better understand the RPC framework. I've modified the "getStocks" method on the StockServiceImpl server-side class so that it returns an array of Stock objects instead of String...

Python App Engine projects with sophisticated user-role-permission structures

In followup to an earlier question, I'd be interested to know whether anyone can recommend some open-source Python-based Google App Engine projects with complex user-role-permission models to consult as a reference. A link to the code would be nice. In my own project, I'd like to add a layer of organizations in addition to the usual ro...

Help with Cron Jobs for Java Google App Engine

I am developing an application on google app engine and was just checking out cron jobs. Looking at this document it seems pretty easy to schedule the jobs with config files and so on. My question is related to what I should actually put in the url the scheduled task triggers. I was thinking a jsp which triggers a servlet that does wha...

How to set Google App Engine java Content-Type to UTF-8

It seems I cannot get UTF-8 encoding to be sent in the response headers. I tried using this to no avail: resp.setHeader("Content-Encoding", "utf-8"); Does anyone know when is this bug to be fixed or is there a workaround? References: http://groups.google.com/group/google-appengine/browse_thread/thread/68a480cb7bec869e http://www.oz...

App Engine - is it better to have multiple clone sites in one app, or one app per site?

I'm making an App Engine site that I don't want to be nationwide, but rather have one app site per city. The sites will all have the same functionality, but will have different templates to localise them to the city. If there is a bug fix or an update of the sites later on, I will want to update all sites simultaneously, and so a scrip...

How can I create a variable that is scoped to a single request in app engine?

I'm creating a python app for google app engine and I've got a performance problem with some expensive operations that are repetitive within a single request. To help deal with this I'd like to create a sort of mini-cache that's scoped to a single request. This is as opposed to a session-wide or application-wide cache, neither of which...

Zipping dynamic files in App Engine (Python)

Hello! Is there anyway I can zip dynamically generated content, such as a freshly rendered html template, into a zip file using zipfile? There seem to be some examples around for zipping static content, but none for zipping dynamic ones. Or, is it not possible at all? One more question: Is it possible to create a zip file with a bunch...

[Appengine + Django] Can't seem to get list() working

I am trying to convert a set object to list...for example "p=list('abc')" is not working. any ideas or is it inherent in appengine ...

debug variable in python

I want to separate the debug outputs from production ones by defining a variable that can be used throughput the module. It cannot be defined in environment. Any suggestions for globals reused across classes in modules? Additionally is there a way to configure this variable flag for telling appengine that dont use this code. ...

Error sending e-mail via SMTP server on App Engine development server

I am trying to send Email using this sample code and these command-line options: dev_appserver.py --smtp_host=smtp.gmail.com --smtp_port=25 [email protected]_password=k1tt3ns myapp However, I receive the following error when my app tries to send e-mail (on the development server): Traceback (most recent call last): Fi...

Python Regular Expression question

from django import forms class ActonForm(forms.Form): creator = forms.RegexField('^[a-zA-Z0-9\-' ]$',max_length=30, min_length=3) data = {'creator': 'hello' } f = ActonForm(data) print f.is_valid() Why doesn't this work? have i made a wrong regular expression? I wanted a name field with provision for single quotes and a hy...

breakpoint in eclipse for appengine

I have pydev on eclipse and would like to debug handlers. I put breakpoint on a handler and start project in debug mode. When I click on the hyperlink corresponding to handler the control does not come back to breakpoint. Am I missing something here? Also the launch is for google app engine application in python. ...

issue while upload into appspot

Hi All, By using dev_appserver.py --smtp_host=smtp.example.com --smtp_port=25 \ --smtp_user=ajohnson --smtp_password=k1tt3ns myapp like command line argument I am able to send Email ... But after uploading to appspot.com, we can't able to pass arguments like above.. how can I solve my Email issue while up load in to appspot...

users module errors in Google App Engine (solved)

UPDATE: It works now! but I didnt change anything actually, seems like Google need time to update its database for app engine. like 20 mins. I want to use user service of my domain in google App, but... Is it possible to solve this problem by my side? Traceback (most recent call last): File "/base/python_lib/versions/1/google/appengi...

What is the most state-of-the-art, pure python, XML parser available?

Considering that I want to write python code that would run on Google App Engine and also inside jython, C-extensions are not an option. Amara was a nice library, but due to its C-extensions, I can't use it for either of these platforms. ...

gql does not work for get paramters for keys

I am trying to compare the key to filter results in gql in python but the direct comparision nor typecasting to int works. There fore I am forced to make a work around as mentioned in uncommented lines below. Any clues. row = self.request.get("selectedrow") #mydbobject = DbModel.gql("WHERE key=:1", row).fetch(1) #mydbobject = DbModel.gq...

Trouble getting unit testing of RPC on GWT

I am trying to get RPC testing using GWT. I am using the default StockWatcher project that is mentioned here, I download the project, I import it, everything works fine. I then run junitcreator in the StockWatcher project: /Users/stephen/Work/gwt/gwt-mac-1.6.4/junitCreator -junit /Users/stephen/Applications/eclipse/plugins/org.junit_...

Example of testing a RPC call using GWT-TestCase with GAE

How is that for a lot of acronyms! I am having trouble testing GWT's RPC mechanism using GWT's GWTTestCase. I created a class for testing using the junitCreator tool included with GWT. I am attempting to test using the built in Google App Engine using the created "hosted mode" testing profile created by junitCreator. When I run the test...

Is there any way for the Google App Engine's urlfetch to open and keep open a Twitter Streaming API connection?

The Twitter streaming api says that we should open a HTTP request and parse updates as they come in. I was under the impression that Google's urlfetch cannot keep the http request open past 10 seconds. I considered having a cron job that polled my Twitter account every few seconds, but I think Google AppEngine only allows cron jobs onc...

Google App Engine and Amazon S3 File Uploads

Hi guys, I know this has been asked before but there is really not a clear answer. My problem is I built a file upload script for GAE and only found out after, that you can only store files up to aprox. 1MB in the data store. I can stop you right here if you can tell me that if I enable billing the 1MB limit is history but I doubt it. I...