App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.tools.devappserver2.python.sandbox.ModuleOverridePolicy Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.python.sandbox.ModuleOverridePolicy:

Public Member Functions

def __init__
 
def apply_policy
 

Public Attributes

 default_stub
 
 whitelist
 
 overrides
 
 deletes
 
 constant_types
 
 default_pass_through
 

Detailed Description

A policy for implementing a partial whitelist for a module.

Member Function Documentation

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: