google.appengine.datastore.datastore_pbs.IdResolver

A class that can handle project id <--> application id transformations.

Inherits From: expected_type

app_ids A list of application ids with application id shard set. i.e. s~my_app or e~my_app.

Methods

resolve_app_id

View source

Converts a project id to an application id.

Args
project_id The project id.

Returns
The application id.

Raises
InvalidConversionError if the application is unknown for the project id.

resolve_project_id

View source

Converts an application id to a project id.

Args
app_id The application id.

Returns
The project id.