google-app-engine

Switch off case sensitive URLs in Google App Engine

We recently moved our company website to Google app engine. We have encountered case sensitivity problems with some of the links in our website. Some links are uppercase when the corresponding folders on the server are lowercase. This was not an issue on our old windows server. Google app engine appears to be case sensitive with URLs...

Roles in Java Google App Engine

Does anyone have any recommendations for me on how to manage user roles on the Java version of Google App Engine? ...

Python - Iterate over all classes

How can I iterate over a list of all classes loaded in memory? I'm thinking of doing it for a backup, looking for all classes inheriting from db.Model (Google App Engine). Thanks, Neal Walters ...

GAE - How Do i edit / update the datastore in python

I have this datastore model class Project(db.Model) projectname = db.StringProperty() projecturl = db.StringProperty() class Task(db.Model) project = db.ReferenceProperty(Project) taskname= db.StringProperty() taskdesc = db.StringProperty() How do I edit the value of taskname ? say I have task1 and i want to change it to task1-project...

Suggestion for Approachs to Develop Multi tenant Django Proj on Google App Engine

Hi, I was hoping to get some suggestions on some best approaches to develop a multi tenant Django project on Google AppEngine. Some Thoughts to Consider. I would assume using djnago.contrib.sites is a must. I would like to use existing applications such as django-profiles and django-registration, I know their models would need porti...

Google App Engine urlfetch to POST files

I am trying to send a file to torrage.com from an app in GAE. the file is stored in memory after being received from a user upload. I would like to be able to post this file using the API available here: http://torrage.com/automation.php but i am having some problems undestanding how the body of the post should be encoded, the most i go...

Python Inspect - Lookup the data type for a property in a GAE db.model Class

class Employee(db.Model): firstname = db.StringProperty() lastname = db.StringProperty() address1 = db.StringProperty() timezone = db.FloatProperty() #might be -3.5 (can contain fractions) class TestClassAttributes(webapp.RequestHandler): """ Enumerate attributes...

attach spreadsheet to mail message with gae

Hi I am running django on python sdk of gae. My application is an order processing app for a small business. I want to email a delivery note in the form of a spreadsheet to customers on completion of an order. Now I have been reading the docs and its no problem sending attachments, just that only certain file types are allowed in gae...

Django & webapp living together on GAE?

Is it possible to have both frameworks available? So that I could have from google.appengine.ext import webapp from django.template.loader import render_to_string class MainPage(webapp.RequestHandler): def get(self): self.response.out.write(render_to_string('some.template')) and from django.http import HttpResponse def...

Role-based security with Google App Engine and Python

Hi all, I would like to ask what is the common way for handling role-based security with Google App Engine, Python? In the app.yaml, there is the "login" section, but available values are only "admin" and "required". How do you normally handle role-based security? Create the model with two tables: Roles and UserRoles Import values f...

Java Google App Engine Datastore: 'IN' operator available on JDO query filters, as with Python?

This page describes an 'IN' operator that can be used in GAE Datastore to compare a field against a list of possible matches, not just a single value: However this is for Python. In Java (App Engine 1.2.5), trying query.setFilter("someField IN param"); on my javax.jdo.query fires a JDOUserException 'Portion of expression could not b...

Google app engine and python and objects that pass by value

This is really a python language question, but its wrapped around a Google appengine specific problem. We have class User( db.Model ) : email = db.StringProperty() name = db.StringProperty() password = db.StringProperty() # more fields.. Because the user account is accessed so often, we keep a copy in session using gaeutili...

Google App Engine: using generate_records with the bulkloader

I'm using Python 2.5 locally and GAE 1.5. I'm trying to load data which is not is CSV format. Here's a simplified model which reflects what I get with a more complex real life issue: class Thing(db.Model): name = db.StringProperty() class ThingLoader(bulkloader.Loader): elements = [ ('name', str) ] def...

Spring sessionForm in Google AppEngine

My sessions in Google Appengine works in the development environment but not when I deploy it. I have sessions-enabled set to true in my appengine-web.xml. Am I missing something here? I had to override the initBinder in my Controller for it to work in appengine because Spring tries to "access the system class loader" Maybe I should a...

Is it possible to use django Piston on Google AppEngine?

I haven't been able to do so due to all sort of missing dependencies (mainly, I think the problem is in the authentication code which relies on django stuff that is not available on AppEngine) I was wondering if anyone patched\forked piston to get it working on AppEngine? ...

Is there a right way to manipulate GoogleAppEngine security permissions?

I have a GoogleAppEngine application that is required to connect to another localhost server, but when I'm trying to do this from the server code, I get: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) I know that I can specify my additional security grant by using java virtual machine ...

Can we run google app engine on ubuntu/windows and serve web application

I see google provide SDK and utilties to develop and run the web application in development (developer-pc) and port them to google app engine live (at google server). Can we use google app engine to run the local web application without using google infrastructure? Basically I want a decent job scheduler and persistent job queue for p...

Dealing with db.Timeout on Google App Engine

I'm testing my application (on Google App Engine live servers) and the way I've written it I have about 40 db.GqlQuery() statements in my code (mostly part of classes). I keep getting db.Timeout very often though. How do I deal with this? I was going to surround all my queries with really brutal code like this: querySucceeded = Fa...

How to upload bulk data to Google Servers using Google App Engine running on Java?

I am not able to figure out how to upload bulk data to the Google's servers bypassing the 10mb upload limit and 30 sec session timeout. I want to design an application that takes my standard SQL data and pushes it to the Google's servers. I might sound naive but your help is most valuable for my project. ...

KindError on setting a ReferenceProperty value

This seemingly perfect Google App Engine code fails with a KindError. # in a django project 'stars' from google.appengine.ext import db class User(db.Model): pass class Picture(db.Model): user = db.ReferenceProperty(User) user = User() user.put() picture = Picture() picture.user = user # ===> KindError: Property user must be...