google-app-engine

Jinja2 in Google App Engine

Hello, I have started using Jinja2 as my templating engine on Google App Engine (in Python). My question is this: Will bytecode caching work in production? It is working very well on the development server, but I read somewhere that bytecode caching depends on the marshal module, which is not supported in App Engine. This answer to a d...

Any way to tweak bulkloader.py so I can fully restore a production instance locally?

I'm using the python runtime on the AppEngine. I have a model (or handful of models) which are currently not playing nicely with my client code. I'd like to be able to debug this locally, with the data in whatever state it's in. The obvious answer is to use bulkloader.py to download the data & restore it to the SDK. But I can't. T...

Is it possible sign a plain text string with RSA private key on Google App Engine with Java SDK?

Hi, Is it possible sign a plain text string with RSA private key on Google App Engine with Java SDK? Thanks ...

What is the ellipsis for in this method signature?

In the App Engine docs, what is the ellipsis (JID...) for in this method signature? public MessageBuilder withRecipientJids(JID... recipientJids) What's the function of those three dots? ...

Does anyone know how a white-list class access approach similar to Google App Engine can be implemented?

I am writing a container framework that can dynamically deploy a Jar file containing user developed classes in the container, and then using a web interface execute certain classes from the Jar file. Everything else is well set, including the validations. However, a requirement is to only allow access to certain JDK and other library c...

placement of sorted entry in google appengine datastore

I'd like to determine what place a particular entry is in, but the appropriate GQL query is escaping me. Ideally I'd like to know the following details, which seem like they should be known by the datastore. I just can't seem to figure how to determine it. Can someone help? the placement of a particular entry (in a given sorting, i....

Google App Engine: How can I DRY this basic request handling?

I'm just getting started with Google App Engine. Currently, my app has two pages: one lists all the inventory currently in stock, and the other is a detail page for a given item. I feel that my coding could be much more DRY. (I'm making all the calls to print headers and footers twice, for instance.) Here is the code. How can I factor o...

Google App Engine: Basic Django Issue

I'm using Django templating with Google App Engine. I'm trying unsuccessfully to print out a menu. The controller: menu_items = {'menu_items': [{'href': '/', 'name': 'Home'}, {'href': '/cart', 'name': 'Cart'}], } render('Views/menu.html', self, {'menu_items': menu_items}) # .....

Select children kinds from app engine datastore - pros and cons.

I have models set up as the following: class Day(db.Model): date = db.DateProperty() total = db.FloatProperty() class Event(db.Model): desc = db.StringProperty() amount = db.FloatProperty() The hierarchy is as such: User > Day > Event (Users have Days. Days have Events.) When a user logs in I want to select their day...

Google app engine Unit Test servlets

Hi, I am wondering if it is possible to test Google App Engine Servlets using Cactus or HTTPUnit? If possible, is there a reference/guide on this? Thanks! ...

Java ORM related question - SQL Vs Google DB (Big Table?) GAE

I was wondering about the following two options when one is not using SQL tables but ORM based DBs (Example - when you are using GAE) Would the second option be less efficient? Requirement: There is an object. The object has a collection of similar items. I need to store this object. Example, say the object is a tree and it has a co...

Persistance JDO - How to query a property of a collection with JDOQL?

I want to build an application where a user identified by an email address can have several application accounts. Each account can have one o more users. I am trying to use the JDO Storage capabilities with Google App Engine Java. Here is my attempt: @PersistenceCapable @Inheritance(strategy = InheritanceStrategy.NEW_TABLE) public class...

How to retrieve a list of objects which are a property of a class with JDOQL?

I have the next persistence capable classes: @PersistenceCapable public class AppAccount { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent private String companyName; @Persistent List<AppUser> users = new ArrayList<AppUser>(); // Getters and Sett...

How to bulk upload in appengine with reference field ?

Hi, I want to bulk upload data for following entity: class Person(db.Model): name = db.StringProperty(required=True) type = db.StringProperty(required=True) refer = db.SelfReferenceProperty() What is best way to load this data into appspot ? Thanks, ...

Is is possible to re-export to CSV from a GAE bulkloader.py sqlite database?

I ran bulkloader with parameters to export my bigtable to a csv file, and it spent a lot of time downloading the table (it's large). It failed to export do to a problem with one of the lambda expressions in the Exporter class. I fixed that, can I run bulkloader.py again without having to redownload all of the data from GAE? I'd like t...

Python: How to refactor this simple list code?

I'm new to Python. Am I doing it right? The goal: Get a bunch of InCart objects from Google App Engine's datastore that corresponds to the current user. Each InCart item has two attributes: InCart.owner and InCart.item Provide the templating engine a set of items in any InCart.item The code: cartEntries = InCart.gql("WHERE ...

If you install the Google Plugin for Eclipse, do you still need to download the App Engine Java SDK?

It's not clear to me if the Eclipse plugin completely replaces the need to download the SDK. ? ...

Any ideas on automating deployment with the Google AppEngine Launcher?

I am trying to automate the deploy process with the Google AppEngine Launcher, and the one thing getting in my way is the password enquiry; I am trying to set it up so that I don't have to enter my password after the first time. One approach I am looking at is to somehow ensure the cookie does not expire; any ideas on how this may be a...

Django/App Engine/Python 2.5: default __new__ takes no parameters

New to app engine and django. I think this is an issue with my django install, which is 1.1.1, but I've also read that I can just use the django packaged with the app engine SDK. Any help on why I'm getting this error when I test locally would be greatly appreciated. The callback: Variable Value callback <class 'ourlat.main.views.Se...

Getting pubsubhubbub hub working

I have followed the instructions found at code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide , however when I start the hub I get some warnings (http://pastie.org/853356), and when I point my browser to localhost:8080 I get a nasty exceptions.AttributeError thrown in my face ( http://pastie.org/853357 ) in browser & console...