google-app-engine

validate xml against dtd using python on google app engine

I've got validation working on client side using lxml, but I'm not quite sure how to get it work on google app engine, since it doesn't have the lxml package. I tried copying the whole lxml folder and place it in the root of my google application, but it seems like it cannot use it properly. I'm guessing it has to do with the compiled .s...

Method to migrate App Engine models

Database migrations are a popular pattern, particularly with Ruby on Rails. Since migrations specify how to mold old data to fit a new schema, they can be helpful when you have production data that must be converted quickly and reliably. But migrating models in App Engine is difficult since processing all entities sequentially is diffic...

AppEngine Taskqueue: is there a way to determine the queue depth?

Is there a way to determine programmatically how many tasks are queued in a taskqueue in AppEngine? ...

AppEngine: scheduled tasks per Application or per Application Instance?

From what I gather, AppEngine fires up "Application Instances" (for a lack of better terminology that I know of) as a function of demand on the said application. Now, let's say I define Scheduled Tasks for my Application, is it possible that the said tasks might end-up being run by multiple Application Instances? The reason I am aski...

iPhone log in to Google App Engine

Is there any way to log into a Google account from inside an iPhone application if you know the username and password of the account. I want to be able to do this without making the user type in the information each time the app has to login. I need to do this so I can have a login system accessable from the iPhone SDK. Actually any l...

Google App Engine Datastore multi-field key

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable ="false") public class Foo implements IsSerializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent private Long revision; @Persistent private String information; } The problem is this obje...

How to write a RESTful URL path regex in GAE/Python for n parameters?

Currently I have three URL paths that map to ServiceHandler. How do I combine the three into one neat regex that can pass n number of arguments to ServiceHandler? (r'/s/([^/]*)', ServiceHandler), (r'/s/([^/]*)/([^/]*)', ServiceHandler), (r'/s/([^/]*)/([^/]*)/([^/]*)', ServiceHandler) ...

Can I use Django's Generic Views with google-app-engine-django?

Put simply, is there a way to get generic views to work? If I try the following in urls.py: publisher_info = { 'queryset': Publisher.objects.all(), } urlpatterns = patterns('', (r'^publishers/$', list_detail.object_list, publisher_info) ) I get the following error: AttributeError at /publishers 'Query' object has no a...

How do I validate a Django form containing a file on App Engine with google-app-engine-django?

I have a model and form like so: class Image(BaseModel): original = db.BlobProperty() class ImageForm(ModelForm): class Meta: model = Image I do the following in my view: form = ImageForm(request.POST, request.FILES, instance=image) if form.is_valid(): And I get: AttributeError at /image/add/ 'NoneType' object has...

How to check in Java App Engine if we are on development workstation

Hello there, I'd like to do this in Java Google App Engine if(developmentMode) foo(); else bar(); Does anyone know a good way to do this? Daniel ...

How to debug Django NoReverseMatch errors?

Folks, I am getting a NoReverseMatch error for a particular url call. I'd like to know: are there any good tools to debug these in general? For example, some way to list out which URLs are registered? My particular example: Template: <a href= "{% url django.contrib.auth.views.redirect_to_login blarg %}">log in</a> Error: NoRevers...

How to concatenate multple python source files into single file

(Assume that: application start-up time is absolutely critical; my application is started a lot; my application runs in an environment in which importing is slower than usual; many file need to be imported; and compilation to .pyc files is not available.) I would like to concatenate all the python source files that define a collection o...

Storing wiki revisions on Google App Engine/Django - Modifying This Existing Code

In the past, I created a Django wiki, and it was fairly straightforward to make a Page table for the current wiki entries, and then to store old revisions into a Revision table. More recently, I decided to set up a website on Google App Engine, and I used some wiki code that another programmer wrote. Because he created his Page model in...

Possible Data Schemes for Achievements on Google App Engine

I'm building a flash game website using Google App Engine. I'm going to put achievements on it, and am scratching my head on how exactly to store this data. I have a (non-google) user model. I need to know how to store each kind of achievement (name, description, picture), as well as link them with users who earn them. Also, I need to ke...

Google App Engine Needs Index Error

I am currently getting a needs index error on my app engine app: http://www.gaiagps.com/wiki/home. I believe this index should have been created automatically by my index.yaml file (see below). Googling a bit, I think I just need to wait for my index to be built. Is this correct, or do I need to do something manually? Is there some sor...

google wave OnBlipSubmitted

I'm trying to create a wave robot, and I have the basic stuff working. I'm trying to create a new blip with help text when someone types @help but for some reason it doesnt create it. I'm getting no errors in the log console, and I'm seeing the info log 'in @log' def OnBlipSubmitted(properties, context): # Get the blip that was just s...

problem with filtering in a referenceproperty dropdown - Django

I have the following problem. I have a contact class that different users can tag with their own topics: class Contact(db.Model): contact_date = db.DateProperty(auto_now_add=True) remarks = db.TextProperty() topic = db.ReferenceProperty(Topic) class Topic(db.Model): topic = db.StringProperty(required=True) des...

union with sort in Google-App-Engine

I have a class: class Transaction(db.Model): accountDebit = db.ReferenceProperty(reference_class=Account, collection_name="kontoDuguje") accountCredit = db.ReferenceProperty(reference_class=Account, collection_name="kontoPotrazuje") amount = db.Fl...

sending email from wave robot

Anyone know how to send an email using google wave python api? Thanks ...

change the class loading order google app engine java

I am trying to create an application on google app engine using struts2. Struts2 internally uses freemarker .One of the Freemarker framework classes suppose X internally uses a class javax.swing.Treenode which is not in google app engine jre white list. Now in order to run my application i created a new class X in the same package struct...