thirdparty/google_appengine/google/appengine/api/user_service_pb.py
changeset 1278 a7766286a7be
parent 828 f5fd65cc3bf3
child 2309 be1b94099f2d
equal deleted inserted replaced
1277:5c931bd3dc1e 1278:a7766286a7be
    25 from google.appengine.api.api_base_pb import StringProto
    25 from google.appengine.api.api_base_pb import StringProto
    26 class UserServiceError(ProtocolBuffer.ProtocolMessage):
    26 class UserServiceError(ProtocolBuffer.ProtocolMessage):
    27 
    27 
    28   OK           =    0
    28   OK           =    0
    29   REDIRECT_URL_TOO_LONG =    1
    29   REDIRECT_URL_TOO_LONG =    1
       
    30   NOT_ALLOWED  =    2
    30 
    31 
    31   _ErrorCode_NAMES = {
    32   _ErrorCode_NAMES = {
    32     0: "OK",
    33     0: "OK",
    33     1: "REDIRECT_URL_TOO_LONG",
    34     1: "REDIRECT_URL_TOO_LONG",
       
    35     2: "NOT_ALLOWED",
    34   }
    36   }
    35 
    37 
    36   def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
    38   def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
    37   ErrorCode_Name = classmethod(ErrorCode_Name)
    39   ErrorCode_Name = classmethod(ErrorCode_Name)
    38 
    40