google-app-engine

mail sent from google-app-engine app not appearing on my "sent items" on gmail account

I have an application hosted on google app engine that sends mail to people under certain conditions. The mail is sent on my behalf. Earlier, each time a mail was sent, I would find the sent mail on my "Sent Items" folder in gmail. However, this does not appear to be happening consistently. I found that, a mail was sent yesterday and was...

error deploying to Google Appengine

Hi, I'm trying to deploy my java based appengine app through the eclipse plugin. I get an error at the very end of the process whichI pasted below. Any ideas what this could mean? com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: http://appengine.google.com/api/queue/update?app_id=ipoobeta&amp...

Google app engine datastore "low level api" for Java examples, tutorials, documentation?

Any suggestions on where to find examples, tutorials, and more thorough documentation on how to use the Google App Engine Datastore "Low Level Api" for Java? I know this basic documentation page exists, but it just tells me whats in the Api and doesn't say much about how to actually use it: http://code.google.com/appengine/docs/java/jav...

Blobstore is stable enough for production?

I really need upload files bigger that 1 Mb, so i only have the Blobstore API. But any use it in production? know any issue or problems? ...

Facebook, Flash and Google App Engine

Is it possible to use a Facebook session in a Flash to authenticate on Google App Engine? I'm trying to create a Flash game and I want to use GAE as the back-end. ...

attribute 'tzinfo' of 'datetime.datetime' objects is not writable

How do I set the timezone of a datetime instance that just came out of the datastore? When it first comes out it is in UTC. I want to change it to EST. I'm trying, for example: class Book( db.Model ): creationTime = db.DateTimeProperty() When a Book is retrieved, I want to set its tzinfo immediately: book.creationTime.tzinfo =...

How to send a string from a python script at Google App Engine to the browser client as a file

I have a python web-application running inside the Google App Engine. The application creates on user-demand a string and I want the string to be send to the browser client (application/octet-stream?) as a file. How can i realize this? ...

Google app engine after refresh from datastore

I want to set the .tzinfo of every datetime instance automatically as soon as it comes out of the datastore. So if I have class Message( db.Model ): creationTime = db.DateTimeProperty() someOtherTime = db.DateTimeProperty() ## I really want to define a method like this, ## that runs immediately AFTER an instance has ...

How to format search autocompletion part lists?

I'm currently working on an AppEngine project, and I'd like to implement autocompletion of search terms. The items that can be searched for are reasonably unambiguous and short, so I was thinking of implementing it by giving each item a list of incomplete typings. So foobar would get a list like [f, fo, foo, foob, fooba, foobar]. The use...

Error handling in the RequestHandler without embedding in URI

When a user sends a filled form, I want to print an error message in case there is an input error. One of the GAE sample codes does this by embedding the error message in the URI. Inside the form handler (get): self.redirect('/compose?error_message=%s' % message) and in the handler (get) of redirected URI, gets the message from reque...

Django/GAE anonymous users data

Hi, in my application I have per-user models, let me explain with a simple example: class Item(db.Model): master = db.ReferenceProperty(User,collection_name="items") name = db.StringProperty() description = db.StringProperty() value = db.StringProperty() def __unicode__(self): return u"%s"%self.name So I can store informations on...

Core Data - Backing up to Google App Engine (iPhone)

I am considering backing up data from an iPhone application using the Google App Engine (GAE) - I was also considering using Python to build a RESTful app to deal with incoming/outgoing data. On the client side I am using Core Data to store the information I wish to back up, and retrieve using the GAE. I was wondering whether there we...

Property XXXX is not multi-line exception in python GAE

I have a simple model object with profilename = db.StringProperty() and when I get a string with "Some More" and try to put it in model it throws exception Property profilename is not multi-line Is space equivalent to newline or I have missed something here? It is put ting for single word strings without spaces....

How can I find the encoding of a FileItemStream returned by FileItemIterator?

I use Apache Commons FileUpload to receive uploaded files in a Servlet, as described at http://code.google.com/appengine/kb/java.html#fileforms ServletFileUpload upload = new ServletFileUpload(); FileItemIterator iterator = upload.getItemIterator(request); while (iterator.hasNext()) { FileItemStream...

Set parent in a ModelForm in Google App Engine

I want to create an Entity Group relationship in an Entity that is being created through a ModelForm. How do I pass the parent instance and set the parent= attribute in the ModelForm? ...

How do I create a request object in Django?

So I'm using Django with Google App Engine and I have an urls.py file that redirects each url to a corresponding method. Each one of those methods is automatically passed "request" as one of the arguments, which I believe is an HttpRequest object. How do I create this populated request object from within my code? For example, if I'm wi...

Google Appengine - Object with id "com.google.appengine.api.datastore.Key:Product("Potatoe")" is managed by a different Object Manager

Hi i am hitting the common error "managed by a different object manager" I have looked around online and not found a solution that fits my problem. I am calling the following code from a JSP page PersistenceManager pm = PMF.get().getPersistenceManager(); String query = "SELECT FROM " +Location.class.getName(); List<Location> locTs = (L...

GAE datastore eager loading in python api

I have two models in relation one-to-many: class Question(db.Model): questionText = db.StringProperty(multiline=False) class Answer(db.Model): answerText = db.StringProperty(multiline=False) question = db.ReferenceProperty(Question, collection_name='answers') I have front-end implemented in F...

Getting information about static files in Python App Engine; workarounds

I'm working on an App Engine project that will have customizable themes. I'd like to be able to use jQuery UI themes. The problem is figuring out what the CSS file is going to be named. (Typically, "jquery-ui-1.7.2.custom.css". Version numbers will change, and people tend to rename things, but there should only be one CSS file, and I...

Simple Question: How to get current date in Java to be used in GQL query?

I have a Users table that has an element called "date". I would like to make these pseudocode queries work in Java: select * from Users WHERE date=today and also select * from Users WHERE date "in this hour" How can I write the queries? I am using Google App Engine, and the date was initially created using java.util.Date. Please he...