App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Classes | Public Member Functions | List of all members
google.appengine.ext.bulkload.bulkloader_parser.EvaluatedCallable Class Reference
Inheritance diagram for google.appengine.ext.bulkload.bulkloader_parser.EvaluatedCallable:

Classes

class  ParsedMethod
 

Public Member Functions

def __init__
 
def Validate
 
def ToValue
 

Detailed Description

Validates that a string evaluates to a Python callable.

Calls eval at validation time and stores the results as a ParsedMethod object.
The ParsedMethod object can be used as a string (original value) or callable
(parsed method). It also exposes supports_bulkload_state if the callable has
a kwarg called 'bulkload_state', which is used to determine how to call
the *_transform methods.

Constructor & Destructor Documentation

def google.appengine.ext.bulkload.bulkloader_parser.EvaluatedCallable.__init__ (   self)
Initialize EvaluatedCallable validator.

Member Function Documentation

def google.appengine.ext.bulkload.bulkloader_parser.EvaluatedCallable.ToValue (   self,
  value 
)
Returns the code string for this value.
def google.appengine.ext.bulkload.bulkloader_parser.EvaluatedCallable.Validate (   self,
  value,
  key 
)
Validates that the string compiles as a Python callable.

Args:
  value: String to compile as a regular expression.
  key: The YAML field name.

Returns:
  Value wrapped in an object with properties 'value' and 'fn'.

Raises:
  InvalidCodeInConfiguration when value does not compile.

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