google-app-engine

How to store regular expressions in the Google App Engine datastore?

Regular Expressions are usually expressed as strings, but they also have properties (ie. single line, multi line, ignore case). How would you store them? And for compiled regular expressions, how to store it? Please note that we can write custom property classes: http://googleappengine.blogspot.com/2009/07/writing-custom-property-classe...

Creating alternative login to Google Users for Google app engine

How does one handle logging in and out/creating users, without using Google Users? I'd like a few more options then just email and password. Is it just a case of making a user model with the fields I need? Is that secure enough? Alternatively, is there a way to get the user to log in using the Google ID, but without being redirected to ...

Access denied to resource file from java servlet

I am trying to access a resource file from a servlet but getting HTTP Error 500 - access denied: File file = new File("//warChildFolder//myFile.txt"); InputStream is = new FileInputStream(file); // <--error on this line I am on google-app-engine. Any help appreciated! ...

Is it possible to update an entry on Google App Engine datastore through the object's dictionary?

I tried the following code and it didn't work: class SourceUpdate(webapp.RequestHandler): def post(self): id = int(self.request.get('id')) source = Source.get_by_id(id) for property in self.request.arguments(): if property != 'id': source.__dict__[property] = self.request.get(property) source.put() se...

How to check null value for UserProperty in Google App Engine

Hello, In Google App Engine, datastore modelling, I would like to ask how can I check for null value of a property with class UserProperty? for example: I have this code: class Entry(db.Model): title = db.StringProperty() description = db.StringProperty() author = db.UserProperty() editor = db.UserProperty() creationdate = db...

Does memcached share across servers in google app engine?

On the memcached website it says that memcached is a distributed memory cache. It implies that it can run across multiple servers and maintain some sort of consistency. When I make a request in google app engine, there is a high probability that request in the same entity group will be serviced by the same server. My question is, say th...

xmlrpc vs json / rest on java google appengine with android client

Can someone please point me to a reference which gives a "full circle" example implementation of either (both with android client and java appengine back end) xmlrpc or json / rest ? I have found a python example but am struggling to find a java version. Bonus points (not really) but if anyone could provide one where the the transport m...

Has anyone succeeded in using Google App Engine with Python version 2.6 ?

Since Python 2.6 is backward compatible to 2.52 , did anyone succeeded in using it with Google app Engine ( which supports 2.52 officially ). I know i should try it myself. But i am a python and web-apps new bee and for me installation and configuration is the hardest part while getting started with something new in this domain. ( .......

read single cell data from spread sheet

Hi All, I have spreadsheet, want to get(Read) one cell data, through following link, I can able to add row, edit row, delete row, list of spreadsheets etc.. I can able to get all row information but i want to read only single cell data data, any one can give me syntax for that I am using Python and Google App Engine http:/...

Multipart form post to google app engine not working

I am trying to post a multi-part form using httplib, url is hosted on google app engine, on post it says Method not allowed, though the post using urllib2 works. Full working example is attached. My question is what is the difference between two, why one works but not the other is there a problem in my mulipart form post code? or the ...

I can't assign a parent to a child in Google App Engine's Datastore. What am I doing wrong?

In the code below, I'm inserting one piece of data, and then a second one assigning the first as the parent. Both pieces of data go in, but no parent relationship is created. What am I doing wrong? from google.appengine.ext import db class Test_Model(db.Model): """Just a model for testing.""" name = db.StringProperty() # Create ...

Which credentials should I put in for Google App Engine BulkLoader at development server?

Hello everyone, I would like to ask which kind of credentials do I need to put on for importing data using the Google App Engine BulkLoader class appcfg.py upload_data --config_file=models.py --filename=listcountries.csv --kind=CMSCountry --url=http://localhost:8178/remote_api vit/ And then it asks me for credentials: Please enter...

Java App Engine Datastore: How to query fields of object's inherited classes?

AppEngine 1.2.2. I define a class Product like so: @PersistenceCapable(identityType = IdentityType.APPLICATION, table="Products") public class Product { public Product(String title) { super(); this.title = title; } public String getTitle() { return title; } @Persistent String title; @PrimaryKey @Persistent(valueStrateg...

Can I do a text search against a pattern when using Google App Engine?

All examples I'm seeing show how to pull up entities matching a string exactly. Is there an equivalent to a LIKE query? Also, if it helps, I'm thinking of using the result for an auto-completing a text box. Thanks ...

app-engine patch - how do Iget Django system error messages in foreign languages?

Bonjour, Guten Morgen, Merhaba etc etc Has anyone used foreign languages with app-engine-patch? I am on version 1.1 In settings.py I have: ....... Enable I18N and set default language USE_I18N = True LANGUAGE_CODE = 'tr' Restrict supported languages (and JS media generation) LANGUAGES = ( ('tr', 'Turkish'), ('en', 'English'...

Migrating django.dispatch.dispatcher from Django 0.96 to 1.0.2

How does one perform the following (Django 0.96) dispatcher hooks in Django 1.0? import django.dispatch.dispatcher def log_exception(*args, **kwds): logging.exception('Exception in request:') # Log errors. django.dispatch.dispatcher.connect( log_exception, django.core.signals.got_request_exception) # Unregister the rollback event...

Is it possible to persist data in GAE/java without using annotations?

I'm looking to add google-app-engine datastore persistence to one of my projects. So far, I've been reluctant to use the annotations, since I would want to have multiple DAO implementations ( e.g. Hibernate vs. GAE datastore ). Is there a way to have the persistence configuration done without annotations? I found no hints in the officia...

How to get started with Sessions in Google App Engine / Django?

I'm new to Python / GAE / Django. I get that with GAE there are no in-memory sessions per se... but I think I want something equivalent. I read that Django sessions can be backed by BigTable or MemCache, but I never got them working. I guess what I'm asking is "Should I..." Persist with getting Django sessions working? Look at some oth...

accessing remote url's in Google App Engine

I don't know the correct terminology to do a google search. What I want is to make a POST http request to other url, for example twitter, from within mi app in google app engine. If the question is unclear please comment. Thanks! Manuel ...

App Engine Class With Children Of The Same Type

I'm trying to save a tree structure in app engine. My class has a parent and a list of children of the same type. Everything works until I add the children property. There are no errors when I call pm.makePersistent(), but the object is not saved. Does anyone know why this doesn't work? This is my class. I'm using App Engine versio...