Bases: google.appengine.ext.db.Model
A shell session. Stores the session’s globals.
Each session globals is stored in one of two places:
If the global is picklable, it’s stored in the parallel globals and global_names list properties. (They’re parallel lists to work around the unfortunate fact that the datastore can’t store dictionaries natively.)
If the global is not picklable (e.g. modules, classes, and functions), or if it was created by the same statement that created an unpicklable global, it’s not stored directly. Instead, the statement is stored in the unpicklables list property. On each request, before executing the current statement, the unpicklable statements are evaluated to recreate the unpicklable globals.
The unpicklable_names property stores all of the names of globals that were added by unpicklable statements. When we pickle and store the globals after executing a statement, we skip the ones in unpicklable_names.
Using Text instead of string is an optimization. We don’t query on any of these properties, so they don’t need to be indexed.
Adds a statement and list of names to the unpicklables.
Also removes the names from the globals.
A property that stores a list of things.
This is a parameterized property; the parameter must be a valid non-list data type, and all items must conform to this type.
A property that stores a list of things.
This is a parameterized property; the parameter must be a valid non-list data type, and all items must conform to this type.
Removes a global, if it exists.
Removes a name from the list of unpicklable names, if it exists.
Adds a global, or updates it if it already exists.
Also removes the global from the list of unpicklable names.
A property that stores a list of things.
This is a parameterized property; the parameter must be a valid non-list data type, and all items must conform to this type.
A property that stores a list of things.
This is a parameterized property; the parameter must be a valid non-list data type, and all items must conform to this type.