equal
deleted
inserted
replaced
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 |