Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Return Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Return Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr keyword NameLoad keyword Str Return Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad Str attr attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad TupleLoad Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return ListLoad NameLoad decorator_list Return NameLoad decorator_list Call AttributeLoad NameLoad attr Num
N/A N/A ProtoRPC WSGI service applications.

Use functions in this module to configure ProtoRPC services for use with
WSGI applications.  For more information about WSGI, please see:

  http://wsgi.org/wsgi
  http://docs.python.org/library/wsgiref.html
 N/A __author__ rafek@google.com (Rafe Kaplan) N/A cgi N/A httplib N/A logging N/A re wsgiref headers wsgi_headers N/A protobuf N/A protojson N/A messages N/A remote N/A util N/A util wsgi_util N/A __all__ N/A service_app N/A _METHOD_PATTERN (?:\.([^?]+)) N/A _REQUEST_PATH_PATTERN N/A ^(%%s)%s$ _METHOD_PATTERN N/A _HTTP_BAD_REQUEST N/A N/A wsgi_util error N/A httplib BAD_REQUEST N/A _HTTP_NOT_FOUND N/A N/A wsgi_util error N/A httplib NOT_FOUND N/A _HTTP_UNSUPPORTED_MEDIA_TYPE N/A N/A wsgi_util error N/A httplib UNSUPPORTED_MEDIA_TYPE service_mapping N/A N/A service_factory service_path protocols N/A .* None N/A N/A WSGI application that handles a single ProtoRPC service mapping.

  Args:
    service_factory: Service factory for creating instances of service request
      handlers.  Either callable that takes no parameters and returns a service
      instance or a service class whose constructor requires no parameters.
    service_path: Regular expression for matching requests against.  Requests
      that do not have matching paths will cause a 404 (Not Found) response.
    protocols: remote.Protocols instance that configures supported protocols
      on server.
   N/A N/A protocols None N/A N/A protocols N/A N/A N/A remote Protocols new_default N/A service_class N/A getattr service_factory service_class service_factory N/A remote_methods N/A N/A service_class all_remote_methods N/A path_matcher N/A N/A re compile N/A _REQUEST_PATH_PATTERN service_path protorpc_service_app N/A N/A environ start_response N/A N/A N/A Actual WSGI application function. N/A path_match N/A N/A path_matcher match N/A environ N/A PATH_INFO N/A N/A path_match N/A N/A N/A _HTTP_NOT_FOUND environ start_response N/A service_path N/A N/A path_match group 1 N/A method_name N/A N/A path_match group 2 N/A content_type N/A N/A environ get CONTENT_TYPE N/A N/A content_type N/A N/A content_type N/A N/A environ get HTTP_CONTENT_TYPE N/A N/A content_type N/A N/A N/A _HTTP_BAD_REQUEST environ start_response N/A content_type N/A N/A N/A cgi parse_header content_type N/A 0 N/A request_method N/A environ N/A REQUEST_METHOD N/A N/A request_method POST N/A N/A content N/A %s.%s is a ProtoRPC method.

Service %s

More about ProtoRPC: %s
 N/A service_path method_name N/A N/A N/A N/A service_class definition_name encode utf-8 N/A util PROTORPC_PROJECT_URL N/A error_handler N/A N/A wsgi_util error N/A httplib METHOD_NOT_ALLOWED N/A N/A httplib responses N/A N/A httplib METHOD_NOT_ALLOWED content content content_type text/plain; charset=utf-8 N/A N/A error_handler environ start_response N/A N/A N/A protocol N/A N/A protocols lookup_by_content_type content_type N/A N/A N/A KeyError N/A N/A N/A _HTTP_UNSUPPORTED_MEDIA_TYPE environ start_response send_rpc_error N/A N/A status_code state message error_name N/A None N/A N/A Helper function to send an RpcStatus message as response.

      Will create static error handler and begin response.

      Args:
        status_code: HTTP integer status code.
        state: remote.RpcState enum value to send as response.
        message: Helpful message to send in response.
        error_name: Error name if applicable.

      Returns:
        List containing encoded content response using the same content-type as
        the request.
       N/A status N/A N/A remote RpcStatus state state error_message message error_name error_name N/A encoded_status N/A N/A protocol encode_message status N/A error_handler N/A N/A wsgi_util error status_code content_type N/A protocol default_content_type content encoded_status N/A N/A error_handler environ start_response N/A N/A method N/A N/A remote_methods get method_name N/A N/A method N/A N/A N/A send_rpc_error N/A httplib BAD_REQUEST N/A N/A remote RpcState METHOD_NOT_FOUND_ERROR N/A Unrecognized RPC method: %s method_name N/A content_length N/A int N/A N/A environ get CONTENT_LENGTH 0 N/A remote_info N/A method remote N/A N/A N/A request N/A N/A protocol decode_message N/A remote_info request_type N/A N/A N/A environ N/A wsgi.input read content_length N/A N/A N/A N/A N/A messages ValidationError N/A messages DecodeError N/A err N/A N/A N/A send_rpc_error N/A httplib BAD_REQUEST N/A N/A remote RpcState REQUEST_ERROR N/A Error parsing ProtoRPC request (Unable to parse request content: %s) err N/A instance N/A service_factory N/A initialize_request_state N/A getattr instance initialize_request_state None N/A initialize_request_state N/A N/A server_port N/A N/A environ get SERVER_PORT None N/A server_port N/A N/A server_port N/A int server_port N/A headers N/A N/A N/A name value N/A N/A environ iteritems N/A N/A N/A N/A name startswith HTTP_ N/A N/A N/A N/A headers append N/A N/A N/A N/A N/A N/A name N/A N/A len HTTP_ lower replace _ - value N/A request_state N/A N/A remote HttpRequestState remote_host N/A N/A environ get REMOTE_HOST None remote_address N/A N/A environ get REMOTE_ADDR None server_host N/A N/A environ get SERVER_HOST None server_port server_port http_method request_method service_path service_path headers headers N/A N/A initialize_request_state request_state N/A N/A N/A response N/A method instance request N/A encoded_response N/A N/A protocol encode_message response N/A N/A N/A N/A remote ApplicationError N/A err N/A N/A N/A send_rpc_error N/A httplib BAD_REQUEST N/A N/A remote RpcState APPLICATION_ERROR N/A err message N/A err error_name N/A N/A Exception N/A err N/A N/A N/A N/A logging error N/A Encountered unexpected error from ProtoRPC method implementation: %s (%s) N/A N/A N/A err __class__ __name__ err N/A N/A send_rpc_error N/A httplib INTERNAL_SERVER_ERROR N/A N/A remote RpcState SERVER_ERROR Internal Server Error N/A response_headers N/A N/A content-type content_type N/A N/A start_response N/A %d %s N/A N/A httplib OK N/A N/A httplib responses N/A N/A httplib OK response_headers N/A N/A encoded_response N/A N/A protorpc_service_app N/A N/A N/A util positional 2