I’d like to read outside the current namespace with something like the following:
some_entity = MyModel.get_by_id(some_id_name, namespace='somenamespace')
but get_by_id doesn’t take namespace as a parameter. I get:
TypeError: Unknown configuration option ('namespace')
I’ve gotten things to work with:
some_entity = ndb.Key(MyModel, some_id_name, namespace='somenamespace').get()
So now I’m just complaining, but I figured others could benefit from this. 🙂 Also, since Guido monitors this, is there a reason for not allowing the namespace option in get_by_id?
Please file a feature request in the NDB issue tracker: http://code.google.com/p/appengine-ndb-experiment/issues/list