![]() |
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 | Regexify |
def | MatchesString |
def | MatchesAll |
def | HasMoreSpecificPatternThan |
def | __eq__ |
def | IsFullyHandledBy |
Public Attributes | |
is_literal | |
Static Public Attributes | |
list | ALL_PROPERTIES |
Properties | |
pattern = property(_GetPattern, _SetPattern) | |
Ancestor class for Handler manipulation. Patterns are globs. (http://en.wikipedia.org/wiki/Glob_(programming)).
def google.appengine.tools.handler.Handler.HasMoreSpecificPatternThan | ( | self, | |
other_handler | |||
) |
Returns True if self is more specific than other_handler. Priority in determining specificity is first determined by literal-ness, second by length. This is according to the Java servlet spec for mapping URL paths. Args: other_handler: another handler to compare against. Returns: True if self.pattern is a literal and other_handler.pattern is not, False if vice versa, and otherwise True if self.pattern is longer.
def google.appengine.tools.handler.Handler.IsFullyHandledBy | ( | self, | |
other_handler | |||
) |
Returns True if self specifies something unique. For example, If we have a Handler with pattern "foo*bar" which has properties {'type': 'static'}, and other_handler has pattern "foo*" with the same properties, then other_handler does everything that self does. Args: other_handler: other handler to be matched against Returns: Boolean value of whether other_handler fully handles self.
def google.appengine.tools.handler.Handler.MatchesAll | ( | self, | |
other_glob | |||
) |
Returns True if self matches everything other_glob matches.
def google.appengine.tools.handler.Handler.MatchesString | ( | self, | |
pattern_str | |||
) |
Returns true if input path string is matched by glob pattern.
def google.appengine.tools.handler.Handler.Regexify | ( | self | ) |
Returns a regex-looking string to write to Yaml.
|
static |