google-app-engine

Using Lift 2.1 on Google App Engine with Scala 2.8

Hi, I'm trying to use Lift 2.1-SNAPSHOT on Google App Engine but the lift snippets in the HTML are not being processed. It simple returns the HTML file. This is the lift.html file (just a simple test): <lift:surround with="default" at="content"> Welcome to your Lift application </lift:surround> The web.xml has: <filter> <filt...

Facebook App Error: "Error Message: channel is not owned by the application"

Hello, I am trying to host an application on Google App Engine. The application uses Facebook Connect API for logins. When i tested the application by running it on my local machine, everything worked fine. Now, in the page that is supposed to ask the user for permissions,etc, i get the following error: "Error Message: channel is not ...

Google App Engine pros\cons for Django?

I'm about to start a new django project with friends. This project includes a website, API to mobile applications, clearing and billing, internationalization aspects etc... What are the pros and cons for using Google App Engine vs. a regular web hosting solution? Of course GAE documentation praises their support for django, but I would...

google app engine: problem getting objects from datastore in a task

My application constructs a Parent object in a static factory, along with it's predetermined Children, and then starts up tasks to run some computation on the Children, like so: public static Parent make(User owner, List<Integer> data, int size) { Parent result = new Parent(owner,data,size); PersistenceManager pm = Persi...

Trouble with receiving data from <form>

HTML: <form enctype="multipart/form-data" action="/convert_upl" method="post"> Name: <input type="text" name="file_name"> File: <input type="file" name="subs_file"> <input type="submit" value="Send"> </form> Python (Google App Engine): if self.request.get('file_name'): file_n...

Google App Engine : Cursor Versus Offset

Do you know which is the best approach for fetching chunks of result from a query? 1.Cursor q = Person.all() last_cursor = memcache.get('person_cursor') if last_cursor: q.with_cursor(last_cursor) people = q.fetch(100) cursor = q.cursor() memcache.set('person_cursor', cursor) 2.Offset q = Person.all() offset = memcache.get('offse...

Windows Live Web Authentication on Google App Engine (GAE) using Python

I'm struggling to get Windows Live Web Authentication running on Google App Engine (GAE) using Python, as I'm quite new to the language. However there are lots of examples for Facebook and Twitter, I was wondering if anyone had come up with a solution for Windows Live yet? ...

app engine incoming mail handling

I am developing a Google App Engine application. I wish to receive mails under '%username%@appid.appspotmail.com', where %username% belongs to a user of the application. I just can't figure out what to define in web.xml file. Any similar solution such as mails to: '%username%[email protected]' 'usermailbox.%username%@a...

Querying for not None

I have a model with a reference property, eg: class Data(db.Model): x = db.IntegerProperty() class Details(db.Model): data = db.ReferenceProperty(reference_class = Data) The data reference can be None. I want to fetch all Details entities which have valid data, ie for which the reference property is not None. The following ...

Google App Engine: status code 403

How can I response a 403 status code? I was following some example which had this: raise webapp.Error(403). So I thought that this would give me a 403 but it just gives me a regular 500 server error instead. This is complete example: def administrator(method): ''' credit: http://github.com/btbytes/teh/blob/master/utils.py...

Crash in development server clears datastore?

Hi, I'm testing my app with the development server. When I manually interrupt a request, it sometimes clears the datastore. This clears even models that are not modified by my request, like users, etc. Any idea why is this? Thanks ...

UnicodeDecodeError when passing GET data in Python/AppEngine

This feels like a really basic question, but I haven't been able to find an answer. I would like to read data from an url, for example GET data from a querystring. I am using the webapp framework in Python. I tried the following code, but since I've a total beginner at Python/appengine, I've certainly done something wrong. class MainPa...

in gql, how do i sort by a field in another class linked by referenceproperty?

for example, 2 classes in a 1-to-many relationship: class owner(db.model): name = db.StringProperty() class cat(db.model): name = db.StringProperty() owner = db.ReferenceProperty(owner) so how do i produce a list of cats ordered by owner.name (then optionally by cat.name)? i tried "SELECT * FROM cat ORDER BY owner.na...

DJango Appengine Bforms

I am trying to understand how Django and Appengine work together? First, question: Is this a good team? Experience, what is possible and what not, would be great. I also read some modules like auth, admin wont work. But the article is rather old, so maybe there is an update. And in that tutorial one has to import bforms. What is tha...

Sending multiple POST data items with the same name, using AppEngine

I try to send POST data to a server using urlfetch in AppEngine. Some of these POST-data items has the same name, but with different values. form_fields = { "data": "foo", "data": "bar" } form_data = urllib.urlencode(form_fields) result = urlfetch.fetch(url="http://www.foo.com/", payload=form_data, method=urlfetch.POST, headers={...

How-to use GAE Blobstore Java API with GWT?

I have GAE application and I'd like to download CSV file from Blobstore and display it in a table using GWT. Is there any example showing how to do this? ...

Display GAE list by most recent entry

n00b problem- I am trying to have a list show the most recent entry first. This works without the reverse(), but retrieves nothing with it in. I have heard I should try and use order_by(), but I can't seem to get that to work either. Thanks for the help! class MainHandler(webapp.RequestHandler): def get(self): que = db.Query(model...

How do you define config variables / constants in Google App Engine (Python)?

I am brand new to python/GAE and am wondering how to quickly define and use global settings variables, so say you git clone my GAE app and you just open config.yaml, add change the settings, and the app is all wired up, like this: # config.yaml (or whatever) settings: name: "Lance" domain: "http://example.com" # main.py class Main(...

import django settings in app-engine-patch

Hi there, I have a problem with Django settings. My app runs with app-engine-patch. I added a script that runs without django, and is reached directly via the app.yaml handlers. I then get this error: File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/conf/__init__.py", line 53, in _import_settings raise Envi...

Nose / Nosegae: Import problems

Hello, I have this problem and it's drivin' me nuts! So I am developing my first real Google App Engine application and I always like to discover things while writing tests. So I have the following setup: I have a virtualenv with nose, nosegae, webtest and gaetestbed. It's called porksvr. I activate my virtualenv like this: source ...