|
| default_stub |
|
| whitelist |
|
| overrides |
|
| deletes |
|
| constant_types |
|
| default_pass_through |
|
A policy for implementing a partial whitelist for a module.
def google.appengine.tools.devappserver2.python.sandbox.ModuleOverridePolicy.apply_policy |
( |
|
self, |
|
|
|
module_dict |
|
) |
| |
Apply this policy to the provided module dict.
In order, one of the following will apply:
- Symbols in overrides are set to the override value.
- Symbols in deletes are removed.
- Whitelisted symbols and symbols with a constant type are unchanged.
- If a default stub is set, all other symbols are replaced by it.
- If default_pass_through is True, all other symbols are unchanged.
- If default_pass_through is False, all other symbols are removed.
Args:
module_dict: The module dict to be filtered.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/python/sandbox.py