से पहुंच डेटास्टोर इकाइयां GAE NDB डेटास्टोर के नए प्रलेखन पढ़ना: https://cloud.google.com/appengine/docs/python/ndb/modelclass#class_methodsGAE NDB डेटास्टोर नई सुविधा: अन्य GAE एप्लिकेशन
get_by_id(id, parent=None, app=None, namespace=None, **ctx_options)
Returns an entity by ID. This is really just a shorthand for
Key(cls, id).get()
.Arguments
id
A string or integer key ID. parent Parent key of the model to get.
app
(keyword arg) ID of app. If not specified, gets data for current app.
namespace
(keyword arg) Namespace. If not specified, gets data for default namespace.
**ctx_options
Context options Returns a model instance or None if not found.
मैं इस नए app
पैरामीटर पता चलता है। बहुत समय पहले मुझे यही चाहिए !!!!! मैं बस app "xxxxxglobal" से एप्लिकेशन का "xxxxxdev" डेटासंग्रह पहुँचने का प्रयास किया, लेकिन मैं इस त्रुटि मिलती है:
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/datastore/datastore_rpc.py", line 1373, in check_rpc_success
raise _ToDatastoreError(err)
BadRequestError: app s~xxxxxglobal cannot access app xxxxxxdev's data
मैं खातों सेवाएं जोड़ी [email protected] और [email protected] इस लिंक में एक-दूसरे के व्यवस्थापक के रूप में: https://console.cloud.google.com/iam-admin/iam/
लेकिन मुझे अभी भी समस्या मिलती है।
क्या कोई मेरी मदद कर सकता है? मुझे यह जानने की जरूरत है कि नियंत्रण कक्ष में मैं ऐप इंजन में अन्य ऐप के डेटास्टोर पहुंच प्रदान कर सकता हूं।
मैं इस का जवाब देखने के लिए अच्छा लगेगा। Google सेवा खाता सामग्री बहुत भ्रमित है और मुझे कोई अच्छा दस्तावेज़ नहीं मिला है। –
संभवतः इस आगामी सुविधा से संबंधित है: https://code.google.com/p/googleappengine/issues/detail?id=1300। –
कुछ जवाब * पहले से ही काम कर रहे हैं, जैसा कि इस उत्तर में सुझाया गया है: http://stackoverflow.com/a/25747058/4495081 –