google-app-engine

gae-sessions: How to get current session with with only the SID?

I'm using gae-sessions. How can I retrieve a session using only its session identifier (SID)? Update for response @David Underhill: I've done what you told but in debug mode I got this: Session: SID=None {} | but it has db_key populated with a string Here is my code: upload.py SID = self.request.get("SID") if not SID: ...

Google App Engine - Can not find my logging messages

I can not find the results of my logging calls. To log messages I tried both: System.out.println("some message"); and Logger logger = Logger.getLogger("MyLogger"); // Logger is java.util.logging.Logger // ... logger.info("some message"); I have deployed my app and after few tests I decided check out some log messages. But ...

AppEngine -> "AttributeError: 'unicode' object has no attribute 'has_key'" when using blobstore

There have been a number of other questions on AttributeErrors here, but I've read through them and am still not sure what's causing the type mismatch in my specific case. Thanks in advance for any thoughts on this. My model: class Object(db.Model): notes = db.StringProperty(multiline=False) other_item = db.ReferenceProperty(Other...

Google App Engine fetch() and print

This is the model: class Rep(db.Model): author = db.UserProperty() replist = db.ListProperty(str) unique = db.ListProperty(str) date = db.DateTimeProperty(auto_now_add=True) I am writing replist to datastore: L = [] rep = Rep() s = self.request.get('sentence') L.append(s) re...

Google App Engine development server extremely slow

What can the reason be for this? It was working pretty well. EDIT3 For others who may experience the same problem: check the logs file in the launcher and create a favicon.ico file as described here. And check for other errors as well. EDIT2 @philar: Here is the information: (a) Python 2.6.1 (b) I change the code all the time it is...

Datastore API Calls vs Datastore Queries

In Quota Details (appengine dashboard) there are two items under the Storage section. Datastore API Calls with a limit of 141,241,791 Datastore Queries with a limit of 417,311,168 What is the difference between these two? And why is the latter's limit 3x larger? ...

Is there a way to print the elements of a list object in Python?

This is the object: mylist = Rep().all().fetch(10) More information here. Thanks. UPDATE4 The following code displays the lists: Rep().replist = L Rep().put() query = Rep.all() for result in query: self.response.out.write(result.replist) lik...

Builtin Google App Engine OAuth provider functionality — InvalidOAuthTokenError

I'm trying to use Google App Engine builtin support for OAuth Provider. I get InvalidOAuthTokenError every time I cal oauth.get_current_user() on the provider side. What I'm doing wrong? Does anyone get this functionality working? I use this library http://github.com/zbowling/python-oauth2 for OAuth. This is the consumer side code. cla...

SSL securing site on Google App Engine

How can I make sure that users cannot access http address on google appengine at all? Now usesrs can use https or http to access site, but is there any way to force users using http protocol to https url? ...

Can I use browser authentication to make RESTful calls to GAE?

We're writing a Desktop application that relies on Google Appengine to authenticate the user and retrieve and store data associated to it. The way we'd like to authenticate the user is that on launching the application the browser is launched at the login url for our application. Then the user logins there, and then the application makes...

What does fetch() fetch in GAE?

This is a follow up to my other question. I thought that mylist = list(Rep().all().fetch(50)) makes mylist a list. But when I try to get its length I get the message self.response.out.write(len(P)) TypeError: object of type 'Rep' has no len() Can anyone explain what I am doing wrong? Rep().replist = L ...