google-app-engine

How do I get all the entities of a type with a required property in Google App Engine?

I have a model which has a required string property like the following: class Jean(db.Model): sex = db.StringProperty(required=True, choices=set(["male", "female"])) When I try calling Jean.all(), python complains about not having a required property. Surely there must be a way to get all of them. If Steve is correct (his answer...

Google Web Toolkit (GWT) + Google App Engine (GAE) + Detached Data Persistence

I would like to develop a web-app requiring data persistence using GWT and GAE. As I understand it, my only (or at least by far the most convenient) option for data persistence is GAE's Datastore, using JDO or JPA annotated objects. I would also like to be able to send my objects back and forth client-server using GWT Remote Procedure Ca...

how does one get a count of rows in a datastore model in google appengine?

I need to get a count of records for a particular Model on app engine. How does one do it? I bulk uploaded more than 4000 records but modelname.count() only shows me 1000. ...

Google app engine JRE Class "Black List"

There is a "JRE Class White List" for the Google App Engine. What I would really like is a "Black List" -- in other words, Java APIs that will not work on GAE. Does such a list exist? Have any developers run into problems with Java APIs on GAE? ...

RoR on GAE?

Since Google App Engine will soon full support Java: Would it be possible to run Ruby on Rails on Google App Engine? Or the limitations imposed by the AppEngine runtime will affect the JRuby implementation? What about other languages such as Groovy, Clojure, Scheme? Are there any effort to support .net and C# in JVM?? I think this wo...

Which cloud computing platform should I choose?

How and when do you decide which cloud service is best? EC2 offers Virtual Servers, but can be a pain in some cases, and overkill as well. Azure is great for web apps written in ASP.NET, while GAE is good for Python users, but neither offers the low level of EC2. So, how do you decide where you go? ...

Help with Google App Engine query and datetime

I use the following data: date latitude route name longitude 2009-04-11 00:50:31.640000 40.80708 White Loop 86 -77.85891 2009-04-11 00:50:27.718000 40.80708 White Loop 86 -77.85891 2009-04-11 00:50:01.562000 40.80708 White Loop 86 -77.85891 2009-04-11 00:49:48.765000 40.80708 White Loop 86 -77.85891 ...

How do you Debug/Take Apart/Learn from someone else's Python code (web-based)?

A good example of this is: http://github.com/tav/tweetapp/blob/a711404f2935c3689457c61e073105c1756b62af/app/root.py In Visual Studio (ASP.net C#) where I come from, the classes are usually split into separate files + I can set break points to understand the code level. If I run a program like this, do I just do "system.out" to print ou...

Google App Engine for pseudo-cronjobs?

I look for a possibility to create pseudo-cronjobs as I cannot use the real jobs on UNIX. Since Python scripts can run for an unlimited period, I thought Python would be a great solution. On Google App Engine you can set up Python scripts and it's free. So I should use the App Engine. The App Engine allows 160,000 external URL accesse...

How to retrieve google appengine entities using their numerical id?

Is it possible to retrieve an entity from google appengine using their numerical IDs and if so how? I tried using: key = Key.from_path("ModelName", numericalId) m = ModelName.get(key) but the key generated wasnt correct. ...

[Java] JDO - Updating an Object

Hi, i am experimenting with the Google App Engine, and the persist option JDO. I would like to know if it is possible to map a transient object to a persist object? Or something to update the persistent object with the use of an transient object? I the coding examples i see the following piece of code to update objects: public void u...

How do you store an app engine Image object in the db???

I'm a bit stuck with my code: def setVenueImage(img): img = images.Image(img.read()) x, y = photo_utils.getIdealResolution(img.width, img.height) img.resize(x, y) img.execute_transforms() venue_obj = getVenueSingletonObject() if venue_obj is None: venue_obj = Venue(images = [img]) else: venue_obj.images.append(...

What Java framework would you use with Google App Engine?

It's been a while since I've done any website with with Java, and am wondering what framework options are out there for Google App Engine. What framework would you suggest for someone who has no real preference? I like Ruby On Rails, and am getting into Django, and like that as well. Professionally I'm a ASP.NET developer so I have th...

Trying to get enum style choices= working for django but the whole tuplets are appearing in the drop down

Im using appengine and the appenginepatch (so my issue could be related to that) I have set up a model with a property that has several choices but when trying to display on a form or via admin interface I am getting an error: Property mode is 'o'; must be one of (('s', 'Single'), ('m', 'Multi'), ('o', 'Ordered')) This is my code...

How to fetch data by user from google datastore?

I am playing with google app engine and having a bit of trouble on JDOQL queries. The example shows how to fetch stuff from the datastore: PersistenceManager pm = PMF.get().getPersistenceManager(); String query = "select from " + Greeting.class.getName(); List<Greeting> greetings = (List<Greeting>) pm.newQuery(query).execute(); But w...

ActiveRecord does not work on App Engine - What's the alternative?

Early reports of JRuby on Google App Engine indicate that ActiveRecord does not work. It was my understanding that this was the only way to talk to the database in Rails. Is this not the case? And, if not, what is the alternative? Is there a more direct way in Rails of interfacing with Google's BigTable datastore? ...

How to include flashvars in an app engine response?

I have a flash movie I'm trying to return in an App engine handler, but I'd like to dynamically embed flashvars before returning the .swf file. Basically trying to get it so a request for http://app.appspot.com/someurixyz returns the equivalent of http://app.appspot.com/xyz.swf?myvar=something ...

Webservice API for my Java App Engine GWT app

I'm creating a web app that runs on Google App Engine. I'm also developing a desktop client that needs to access/update data on the webapp. I would like to create a web sevice api between the server and the client. What would be my best options? According to GAE the do not support RMI og JAX out of the box. ...

eCommerce on Google App Engine

I'm looking for an eCommerce platform that could be installed on Google App Engine. Any recommendations? Thanks. ...

Appengine - How to change an entity of kind Model to Polymodel without losing existing entities

I am using appengine and appenginepatch for django I have a class defined in my models that was inheriting from db.Model. I've now changed it to polymodel.PolyModel. Since making the change, my existing entities are no longer retrievable. Is there a way to access them or convert them? Whats the recommended procedure for changing an ent...