fajoy / typhoonae

Automatically exported from code.google.com/p/typhoonae
1 stars 1 forks source link

Namespacing on Entity query #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make remote connection to TyphoonAE using remote_api_stub
2. Set namespace (namespace_manager.set_namespace("mynamespace"))
3. Query an Entity for a Key (key = Entity.all().get().key())
4. Fetch the Entity again with that key (e = Entity.get(key))
5. Entity is not found (print e # None)

What is the expected output? What do you see instead?
- A found Entity
- None

What version of the product are you using? On what operating system?
- Latest from trunk
- Ubuntu 11.04

Please provide any additional information below.
- Using the Mongo Datastore
- Wrote a quick fix for the stub (attached) but not sure if it's the way to go.

Original issue reported on code.google.com by niekbae...@gmail.com on 27 Apr 2012 at 2:11

Attachments:

GoogleCodeExporter commented 9 years ago
Diving deeper into the code it seems that 
namespace_manager.set_namespace("myNamespace") in a remote connection 
('/_ah/remote_api') does NOT affect the calls in datastore_mongo_stub.py

Original comment by niekbae...@gmail.com on 3 May 2012 at 9:28