Use tab as value separator

This commit is contained in:
Dan 2017-12-15 12:25:46 +01:00
parent b90c1fe263
commit 562103c66d
6 changed files with 51 additions and 51 deletions

View File

@ -74,7 +74,7 @@ def start():
with open("{}/source/{}".format(home, i)) as f_csv, \ with open("{}/source/{}".format(home, i)) as f_csv, \
open("{}/{}_{}.py".format(dest, name.lower(), code), "w") as f_class: open("{}/{}_{}.py".format(dest, name.lower(), code), "w") as f_class:
reader = csv.reader(f_csv, delimiter="|") reader = csv.reader(f_csv, delimiter="\t")
super_class = caml(name) super_class = caml(name)
name = " ".join([str(i.capitalize()) for i in re.sub(r"_", " ", name).lower().split(" ")]) name = " ".join([str(i.capitalize()) for i in re.sub(r"_", " ", name).lower().split(" ")])

View File

@ -1,5 +1,5 @@
id|message id message
FILE_MIGRATE_X|The file to be accessed is currently stored in DC{x} FILE_MIGRATE_X The file to be accessed is currently stored in DC{x}
PHONE_MIGRATE_X|The phone number a user is trying to use for authorization is associated with DC{x} PHONE_MIGRATE_X The phone number a user is trying to use for authorization is associated with DC{x}
NETWORK_MIGRATE_X|The source IP address is associated with DC{x} (for registration) NETWORK_MIGRATE_X The source IP address is associated with DC{x} (for registration)
USER_MIGRATE_X|The user whose identity is being used to execute queries is associated with DC{x} (for registration) USER_MIGRATE_X The user whose identity is being used to execute queries is associated with DC{x} (for registration)

1 id message
2 FILE_MIGRATE_X The file to be accessed is currently stored in DC{x}
3 PHONE_MIGRATE_X The phone number a user is trying to use for authorization is associated with DC{x}
4 NETWORK_MIGRATE_X The source IP address is associated with DC{x} (for registration)
5 USER_MIGRATE_X The user whose identity is being used to execute queries is associated with DC{x} (for registration)

View File

@ -1,32 +1,32 @@
id|message id message
FIRSTNAME_INVALID|The first name is invalid FIRSTNAME_INVALID The first name is invalid
LASTNAME_INVALID|The last name is invalid LASTNAME_INVALID The last name is invalid
PHONE_NUMBER_INVALID|The phone number is invalid PHONE_NUMBER_INVALID The phone number is invalid
PHONE_CODE_HASH_EMPTY|phone_code_hash is missing PHONE_CODE_HASH_EMPTY phone_code_hash is missing
PHONE_CODE_EMPTY|phone_code is missing PHONE_CODE_EMPTY phone_code is missing
PHONE_CODE_EXPIRED|The confirmation code has expired PHONE_CODE_EXPIRED The confirmation code has expired
PHONE_CODE_INVALID|The confirmation code is invalid PHONE_CODE_INVALID The confirmation code is invalid
API_ID_INVALID|The api_id/api_hash combination is invalid API_ID_INVALID The api_id/api_hash combination is invalid
PHONE_NUMBER_OCCUPIED|The phone number is already in use PHONE_NUMBER_OCCUPIED The phone number is already in use
PHONE_NUMBER_UNOCCUPIED|The phone number is not yet being used PHONE_NUMBER_UNOCCUPIED The phone number is not yet being used
USERS_TOO_FEW|Not enough users (to create a chat, for example) USERS_TOO_FEW Not enough users (to create a chat, for example)
USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example) USERS_TOO_MUCH The maximum number of users has been exceeded (to create a chat, for example)
TYPE_CONSTRUCTOR_INVALID|The type constructor is invalid TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
FILE_PART_INVALID|The file part number is invalid FILE_PART_INVALID The file part number is invalid
FILE_PARTS_INVALID|The number of file parts is invalid FILE_PARTS_INVALID The number of file parts is invalid
FILE_PART_X_MISSING|Part {x} of the file is missing from storage FILE_PART_X_MISSING Part {x} of the file is missing from storage
MD5_CHECKSUM_INVALID|The MD5 checksums do not match MD5_CHECKSUM_INVALID The MD5 checksums do not match
PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid PHOTO_INVALID_DIMENSIONS The photo dimensions are invalid
FIELD_NAME_INVALID|The field with the name FIELD_NAME is invalid FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
FIELD_NAME_EMPTY|The field with the name FIELD_NAME is missing FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
MSG_WAIT_FAILED|A waiting call returned an error MSG_WAIT_FAILED A waiting call returned an error
PEER_ID_INVALID|The id/access_hash combination is invalid PEER_ID_INVALID The id/access_hash combination is invalid
MESSAGE_EMPTY|The message sent is empty MESSAGE_EMPTY The message sent is empty
ENCRYPTED_MESSAGE_INVALID|The special binding message (bind_auth_key_inner) contains invalid data ENCRYPTED_MESSAGE_INVALID The special binding message (bind_auth_key_inner) contains invalid data
INPUT_METHOD_INVALID|The method called is invalid INPUT_METHOD_INVALID The method called is invalid
PASSWORD_HASH_INVALID|Two-step verification password is invalid PASSWORD_HASH_INVALID Two-step verification password is invalid
USERNAME_NOT_OCCUPIED|The username is not occupied by anyone USERNAME_NOT_OCCUPIED The username is not occupied by anyone
USERNAME_INVALID|The username is invalid USERNAME_INVALID The username is invalid
MESSAGE_ID_INVALID|The message id is invalid MESSAGE_ID_INVALID The message id is invalid
MESSAGE_NOT_MODIFIED|The message was not modified MESSAGE_NOT_MODIFIED The message was not modified
ENTITY_MENTION_USER_INVALID|The mentioned entity is not an user ENTITY_MENTION_USER_INVALID The mentioned entity is not an user
1 id message
2 FIRSTNAME_INVALID The first name is invalid
3 LASTNAME_INVALID The last name is invalid
4 PHONE_NUMBER_INVALID The phone number is invalid
5 PHONE_CODE_HASH_EMPTY phone_code_hash is missing
6 PHONE_CODE_EMPTY phone_code is missing
7 PHONE_CODE_EXPIRED The confirmation code has expired
8 PHONE_CODE_INVALID The confirmation code is invalid
9 API_ID_INVALID The api_id/api_hash combination is invalid
10 PHONE_NUMBER_OCCUPIED The phone number is already in use
11 PHONE_NUMBER_UNOCCUPIED The phone number is not yet being used
12 USERS_TOO_FEW Not enough users (to create a chat, for example)
13 USERS_TOO_MUCH The maximum number of users has been exceeded (to create a chat, for example)
14 TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
15 FILE_PART_INVALID The file part number is invalid
16 FILE_PARTS_INVALID The number of file parts is invalid
17 FILE_PART_X_MISSING Part {x} of the file is missing from storage
18 MD5_CHECKSUM_INVALID The MD5 checksums do not match
19 PHOTO_INVALID_DIMENSIONS The photo dimensions are invalid
20 FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
21 FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
22 MSG_WAIT_FAILED A waiting call returned an error
23 PEER_ID_INVALID The id/access_hash combination is invalid
24 MESSAGE_EMPTY The message sent is empty
25 ENCRYPTED_MESSAGE_INVALID The special binding message (bind_auth_key_inner) contains invalid data
26 INPUT_METHOD_INVALID The method called is invalid
27 PASSWORD_HASH_INVALID Two-step verification password is invalid
28 USERNAME_NOT_OCCUPIED The username is not occupied by anyone
29 USERNAME_INVALID The username is invalid
30 MESSAGE_ID_INVALID The message id is invalid
31 MESSAGE_NOT_MODIFIED The message was not modified
32 ENTITY_MENTION_USER_INVALID The mentioned entity is not an user

View File

@ -1,9 +1,9 @@
id|message id message
AUTH_KEY_UNREGISTERED|The key is not registered in the system AUTH_KEY_UNREGISTERED The key is not registered in the system
AUTH_KEY_INVALID|The key is invalid AUTH_KEY_INVALID The key is invalid
USER_DEACTIVATED|The user has been deleted/deactivated USER_DEACTIVATED The user has been deleted/deactivated
SESSION_REVOKED|The authorization has been invalidated, because of the user terminating all sessions SESSION_REVOKED The authorization has been invalidated, because of the user terminating all sessions
SESSION_EXPIRED|The authorization has expired SESSION_EXPIRED The authorization has expired
ACTIVE_USER_REQUIRED|The method is only available to already activated users ACTIVE_USER_REQUIRED The method is only available to already activated users
AUTH_KEY_PERM_EMPTY|The method is unavailable for temporary authorization key, not bound to permanent AUTH_KEY_PERM_EMPTY The method is unavailable for temporary authorization key, not bound to permanent
SESSION_PASSWORD_NEEDED|Two-step verification password required SESSION_PASSWORD_NEEDED Two-step verification password required

1 id message
2 AUTH_KEY_UNREGISTERED The key is not registered in the system
3 AUTH_KEY_INVALID The key is invalid
4 USER_DEACTIVATED The user has been deleted/deactivated
5 SESSION_REVOKED The authorization has been invalidated, because of the user terminating all sessions
6 SESSION_EXPIRED The authorization has expired
7 ACTIVE_USER_REQUIRED The method is only available to already activated users
8 AUTH_KEY_PERM_EMPTY The method is unavailable for temporary authorization key, not bound to permanent
9 SESSION_PASSWORD_NEEDED Two-step verification password required

View File

@ -1,2 +1,2 @@
id|message id message
FLOOD_WAIT_X|A wait of {x} seconds is required FLOOD_WAIT_X A wait of {x} seconds is required

1 id message
2 FLOOD_WAIT_X A wait of {x} seconds is required

View File

@ -1,2 +1,2 @@
id|message id message
AUTH_RESTART|User authorization has restarted AUTH_RESTART User authorization has restarted

1 id message
2 AUTH_RESTART User authorization has restarted