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._internal.django.utils.datastructures.DictWrapper Class Reference
Inheritance diagram for google.appengine._internal.django.utils.datastructures.DictWrapper:

Public Member Functions

def __init__
 
def __getitem__
 

Public Attributes

 func
 
 prefix
 

Detailed Description

Wraps accesses to a dictionary so that certain values (those starting with
the specified prefix) are passed through a function before being returned.
The prefix is removed before looking up the real value.

Used by the SQL construction code to ensure that values are correctly
quoted before being used.

Member Function Documentation

def google.appengine._internal.django.utils.datastructures.DictWrapper.__getitem__ (   self,
  key 
)
Retrieves the real value after stripping the prefix string (if
present). If the prefix is present, pass the value through self.func
before returning, otherwise return the raw value.

The documentation for this class was generated from the following file: