Check the AccountStatus API to see if a account is still usable

This commit is contained in:
2011-12-19 02:29:09 +00:00
parent 35da7e1402
commit 61428654b5
2 changed files with 25 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ API_STATUS_AUTH_ERROR = 2
API_STATUS_OTHER_ERROR = 3
API_STATUS_ACC_EXPIRED = 4
API_STATUS_KEY_EXPIRED = 5
API_STATUS_INVALID_PERMISSIONS = 6
# This tuple is used to assemble the choices list for the field.
API_STATUS_CHOICES = (
@@ -17,6 +18,7 @@ API_STATUS_CHOICES = (
(API_STATUS_OTHER_ERROR, 'Other Error'),
(API_STATUS_ACC_EXPIRED, 'Account Expired'),
(API_STATUS_KEY_EXPIRED, 'Key Expired'),
(API_STATUS_INVALID_PERMISSIONS, 'Invalid Permissions'),
)
API_KEYTYPE_UNKNOWN = 0