Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore Dict NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIsNot Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore NameLoad Break orelse Raise Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd CompareIsNot Call NameLoad NameLoad NameLoad NameLoad UnaryOpNot BoolOpOr CompareIn NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr CompareEq NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If BoolOpAnd CompareEq NameLoad NameLoad UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareLt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr Return SubscriptLoad NameLoad Index Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Return BinOpMod Str NameLoad If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return BinOpMod Str NameLoad If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return BinOpMod Str NameLoad If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return BinOpMod Str NameLoad Return Str decorator_list
N/A N/A AppInfo tools

Library for working with AppInfo records in memory, store and load from
configuration files.
 N/A re google.appengine.api appinfo_errors google.appengine.api validation google.appengine.api yaml_listener google.appengine.api yaml_builder google.appengine.api yaml_object N/A _URL_REGEX (?!\^)/|\.|(\(.).*(?!\$). N/A _FILES_REGEX (?!\^).*(?!\$). N/A _DELTA_REGEX ([1-9][0-9]*)([DdHhMm]|[sS]?) N/A _EXPIRATION_REGEX N/A \s*(%s)(\s+%s)*\s* N/A _DELTA_REGEX _DELTA_REGEX N/A APP_ID_MAX_LEN 100 N/A MAJOR_VERSION_ID_MAX_LEN 100 N/A MAX_URL_MAPS 100 N/A APPLICATION_RE_STRING N/A (?!-)[a-z\d\-]{1,%d} APP_ID_MAX_LEN N/A VERSION_RE_STRING N/A (?!-)[a-z\d\-]{1,%d} MAJOR_VERSION_ID_MAX_LEN N/A HANDLER_STATIC_FILES static_files N/A HANDLER_STATIC_DIR static_dir N/A HANDLER_SCRIPT script N/A LOGIN_OPTIONAL optional N/A LOGIN_REQUIRED required N/A LOGIN_ADMIN admin N/A RUNTIME_PYTHON python N/A DEFAULT_SKIP_FILES ^(.*/)?((app\.yaml)|(app\.yml)|(index\.yaml)|(index\.yml)|(#.*#)|(.*~)|(.*\.py[co])|(.*/RCS/.*)|(\..*)|)$ N/A LOGIN login N/A URL url N/A STATIC_FILES static_files N/A UPLOAD upload N/A STATIC_DIR static_dir N/A MIME_TYPE mime_type N/A SCRIPT script N/A EXPIRATION expiration N/A APPLICATION application N/A VERSION version N/A RUNTIME runtime N/A API_VERSION api_version N/A HANDLERS handlers N/A DEFAULT_EXPIRATION default_expiration N/A SKIP_FILES skip_files URLMap N/A N/A validation Validated N/A N/A Mapping from URLs to handlers.

  This class acts like something of a union type.  Its purpose is to
  describe a mapping between a set of URLs and their handlers.  What
  handler type a given instance has is determined by which handler-id
  attribute is used.

  Each mapping can have one and only one handler type.  Attempting to
  use more than one handler-id attribute will cause an UnknownHandlerType
  to be raised during validation.  Failure to provide any handler-id
  attributes will cause MissingHandlerType to be raised during validation.

  The regular expression used by the url field will be used to match against
  the entire URL path and query string of the request.  This means that
  partial maps will not be matched.  Specifying a url, say /admin, is the
  same as matching against the regular expression '^/admin$'.  Don't begin
  your matching url with ^ or end them with $.  These regular expressions
  won't be accepted and will raise ValueError.

  Attributes:
    login: Whether or not login is required to access URL.  Defaults to
      'optional'.
    url: Regular expression used to fully match against the request URLs path.
      See Special Cases for using static_dir.
    static_files: Handler id attribute that maps URL to the appropriate
      file.  Can use back regex references to the string matched to url.
    upload: Regular expression used by the application configuration
      program to know which files are uploaded as blobs.  It's very
      difficult to determine this using just the url and static_files
      so this attribute must be included.  Required when defining a
      static_files mapping.
      A matching file name must fully match against the upload regex, similar
      to how url is matched against the request path.  Do not begin upload
      with ^ or end it with $.
    static_dir: Handler id that maps the provided url to a sub-directory
      within the application directory.  See Special Cases.
    mime_type: When used with static_files and static_dir the mime-type
      of files served from those directories are overridden with this
      value.
    script: Handler id that maps URLs to scipt handler within the application
      directory that will run using CGI.
    expiration: When used with static files and directories, the time delta to
      use for cache expiration. Has the form '4d 5h 30m 15s', where each letter
      signifies days, hours, minutes, and seconds, respectively. The 's' for
      seconds may be omitted. Only one amount must be specified, combining
      multiple amounts is optional. Example good values: '10', '1d 6h',
      '1h 30m', '7d 7d 7d', '5m 30'.

  Special cases:
    When defining a static_dir handler, do not use a regular expression
    in the url attribute.  Both the url and static_dir attributes are
    automatically mapped to these equivalents:

      <url>/(.*)
      <static_dir>/

    For example:

      url: /images
      static_dir: images_folder

    Is the same as this static_files declaration:

      url: /images/(.*)
      static_files: images/
      upload: images/(.*)
   N/A ATTRIBUTES N/A URL LOGIN HANDLER_STATIC_FILES UPLOAD HANDLER_STATIC_DIR MIME_TYPE EXPIRATION HANDLER_SCRIPT N/A N/A validation Optional _URL_REGEX N/A N/A validation Options LOGIN_OPTIONAL LOGIN_REQUIRED LOGIN_ADMIN default LOGIN_OPTIONAL N/A N/A validation Optional _FILES_REGEX N/A N/A validation Optional _FILES_REGEX N/A N/A validation Optional _FILES_REGEX N/A N/A validation Optional str N/A N/A validation Optional _EXPIRATION_REGEX N/A N/A validation Optional _FILES_REGEX N/A COMMON_FIELDS N/A set N/A URL LOGIN N/A ALLOWED_FIELDS N/A HANDLER_STATIC_FILES HANDLER_STATIC_DIR HANDLER_SCRIPT N/A MIME_TYPE UPLOAD EXPIRATION N/A MIME_TYPE EXPIRATION N/A GetHandler N/A N/A self N/A N/A N/A Get handler for mapping.

    Returns:
      Value of the handler (determined by handler id attribute).
     N/A N/A getattr self N/A N/A self GetHandlerType N/A GetHandlerType N/A N/A self N/A N/A N/A Get handler type of mapping.

    Returns:
      Handler type determined by which handler id attribute is set.

    Raises:
      UnknownHandlerType when none of the no handler id attributes
      are set.

      UnexpectedHandlerAttribute when an unexpected attribute
      is set for the discovered handler type.

      HandlerTypeMissingAttribute when the handler is missing a
      required attribute for its handler type.
     N/A id_field N/A N/A N/A URLMap ALLOWED_FIELDS iterkeys N/A N/A N/A N/A getattr self id_field None N/A N/A mapping_type id_field N/A N/A N/A N/A N/A appinfo_errors UnknownHandlerType N/A Unknown url handler type.
%s N/A str self N/A allowed_fields N/A N/A URLMap ALLOWED_FIELDS N/A mapping_type N/A attribute N/A N/A N/A self ATTRIBUTES iterkeys N/A N/A N/A N/A N/A getattr self attribute None N/A N/A N/A attribute allowed_fields N/A attribute N/A URLMap COMMON_FIELDS N/A attribute mapping_type N/A N/A N/A N/A appinfo_errors UnexpectedHandlerAttribute N/A Unexpected attribute "%s" for mapping type %s. N/A attribute mapping_type N/A N/A N/A mapping_type HANDLER_STATIC_FILES N/A N/A self upload N/A N/A N/A N/A appinfo_errors MissingHandlerAttribute N/A Missing "%s" attribute for URL "%s". N/A UPLOAD N/A self url N/A mapping_type N/A CheckInitialized N/A N/A self N/A N/A N/A Adds additional checking to make sure handler has correct fields.

    In addition to normal ValidatedCheck calls GetHandlerType
    which validates all the handler fields are configured
    properly.

    Raises:
      UnknownHandlerType when none of the no handler id attributes
      are set.

      UnexpectedHandlerAttribute when an unexpected attribute
      is set for the discovered handler type.

      HandlerTypeMissingAttribute when the handler is missing a
      required attribute for its handler type.
     N/A N/A N/A N/A super URLMap self CheckInitialized N/A N/A N/A self GetHandlerType N/A N/A AppInfoExternal N/A N/A validation Validated N/A N/A Class representing users application info.

  This class is passed to a yaml_object builder to provide the validation
  for the application information file format parser.

  Attributes:
    application: Unique identifier for application.
    version: Application's major version number.
    runtime: Runtime used by application.
    api_version: Which version of APIs to use.
    handlers: List of URL handlers.
    default_expiration: Default time delta to use for cache expiration for
      all static files, unless they have their own specific 'expiration' set.
      See the URLMap.expiration field's documentation for more information.
    skip_files: An re object.  Files that match this regular expression will
      not be uploaded by appcfg.py.  For example:
        skip_files: |
          .svn.*|
          #.*#
   N/A ATTRIBUTES N/A APPLICATION VERSION RUNTIME API_VERSION HANDLERS DEFAULT_EXPIRATION SKIP_FILES APPLICATION_RE_STRING VERSION_RE_STRING N/A N/A validation Options RUNTIME_PYTHON N/A N/A validation Options 1 beta N/A N/A validation Optional N/A N/A validation Repeated URLMap N/A N/A validation Optional _EXPIRATION_REGEX N/A N/A validation RegexStr default DEFAULT_SKIP_FILES CheckInitialized N/A N/A self N/A N/A N/A Ensures that at least one url mapping is provided.

    Raises:
      MissingURLMapping when no URLMap objects are present in object.
      TooManyURLMappings when there are too many URLMap entries.
     N/A N/A N/A N/A super AppInfoExternal self CheckInitialized N/A N/A N/A self handlers N/A N/A N/A N/A appinfo_errors MissingURLMapping No URLMap entries found in application configuration N/A N/A N/A len N/A self handlers MAX_URL_MAPS N/A N/A N/A N/A appinfo_errors TooManyURLMappings N/A Found more than %d URLMap entries in application configuration MAX_URL_MAPS N/A N/A LoadSingleAppInfo N/A N/A app_info N/A N/A N/A Load a single AppInfo object where one and only one is expected.

  Args:
    app_info: A file-like object or string.  If it is a string, parse it as
    a configuration file.  If it is a file-like object, read in data and
    parse.

  Returns:
    An instance of AppInfoExternal as loaded from a YAML file.

  Raises:
    EmptyConfigurationFile when there are no documents in YAML file.
    MultipleConfigurationFile when there is more than one document in YAML
    file.
   N/A builder N/A N/A yaml_object ObjectBuilder AppInfoExternal N/A handler N/A N/A yaml_builder BuilderHandler builder N/A listener N/A N/A yaml_listener EventListener handler N/A N/A N/A listener Parse app_info N/A app_infos N/A N/A handler GetResults N/A N/A N/A len app_infos 1 N/A N/A N/A N/A appinfo_errors EmptyConfigurationFile N/A N/A N/A len app_infos 1 N/A N/A N/A N/A appinfo_errors MultipleConfigurationFile N/A N/A app_infos N/A 0 N/A N/A _file_path_positive_re N/A N/A re compile ^[ 0-9a-zA-Z\._\+/\$-]{1,256}$ N/A _file_path_negative_1_re N/A N/A re compile \.\.|^\./|\.$|/\./|^- N/A _file_path_negative_2_re N/A N/A re compile //|/$ N/A _file_path_negative_3_re N/A N/A re compile ^ | $|/ | / ValidFilename N/A N/A filename N/A N/A N/A Determines if filename is valid.

  filename must be a valid pathname.
  - It must contain only letters, numbers, _, +, /, $, ., and -.
  - It must be less than 256 chars.
  - It must not contain "/./", "/../", or "//".
  - It must not end in "/".
  - All spaces must be in the middle of a directory or file name.

  Args:
    filename: The filename to validate.

  Returns:
    An error string if the filename is invalid.  Returns '' if the filename
    is valid.
   N/A N/A N/A N/A _file_path_positive_re match filename None N/A N/A N/A Invalid character in filename: %s filename N/A N/A N/A N/A _file_path_negative_1_re search filename None N/A N/A N/A Filename cannot contain "." or ".." or start with "-": %s filename N/A N/A N/A N/A _file_path_negative_2_re search filename None N/A N/A N/A Filename cannot have trailing / or contain //: %s filename N/A N/A N/A N/A _file_path_negative_3_re search filename None N/A N/A N/A Any spaces must be in the middle of a filename: %s filename N/A N/A