![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | regex |
def | match |
def | Validate |
def | __str__ |
def | __eq__ |
def | __ne__ |
Simulates the regex object to support recompilation when necessary. Used by the RegexStr class to dynamically build and recompile regular expression attributes of a validated object. This object replaces the normal object returned from re.compile which is immutable. When the value of this object is a string, that string is simply used as the regular expression when recompilation is needed. If the state of this object is a list of strings, the strings are joined in to a single 'or' expression.
def google.appengine.api.validation._RegexStrValue.__init__ | ( | self, | |
attribute, | |||
value, | |||
key | |||
) |
Initialize recompilable regex value. Args: attribute: Attribute validator associated with this regex value. value: Initial underlying python value for regex string. Either a single regex string or a list of regex strings. key: Name of the field.
def google.appengine.api.validation._RegexStrValue.__eq__ | ( | self, | |
other | |||
) |
Comparison against other regular expression string values.
def google.appengine.api.validation._RegexStrValue.__ne__ | ( | self, | |
other | |||
) |
Inequality operator for regular expression string value.
def google.appengine.api.validation._RegexStrValue.__str__ | ( | self | ) |
Regular expression string as described by underlying value.
def google.appengine.api.validation._RegexStrValue.match | ( | self, | |
value | |||
) |
Match against internal regular expression. Returns: Regular expression object built from underlying value.
def google.appengine.api.validation._RegexStrValue.regex | ( | self | ) |
Compiled regular expression as described by underlying value.
def google.appengine.api.validation._RegexStrValue.Validate | ( | self | ) |
Ensure that regex string compiles.