![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Classes | |
class | ParsedMethod |
Public Member Functions | |
def | __init__ |
def | Validate |
def | ToValue |
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.
def google.appengine.ext.bulkload.bulkloader_parser.EvaluatedCallable.__init__ | ( | self | ) |
Initialize EvaluatedCallable validator.
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.