News for hackers. Stuff that matters.
Re:App Engine: Multi-tenancy, High Performance Image Serving... by detst on Wednesday August 18, 2010 @12:37AM (#1613268)
One code base. You set a namespace and all datastore, memcache, and task queues operations are performed in that space.

So:

  from google.appengine.api.namespace_manager import set_namespace
  set_namespace('user1')
Now everything is done in the 'user1' namespace.

EDIT: http://code.google.com/appengine/docs/python/multitenancy/mu... gives more details using a "namespace manager" but I think my example above answers your question so I'll leave it as-is.

There are no comments on this comment yet.