Adds EVECharacterKeyMask class for representing key masks and making it easier to compare permissions.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fixes some errors and updates pull_characters to use the new EVECharacterKeyModel class.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds EVEKeyMask class as a base for EVECharacterKeyMask and the new EVECorporationKeyMask classes.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds function for checking if a mask supports multiple keys at once.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Changes the mask field in EVECredential to return the applicable EVEKeyMask object instead of an integer.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
References the kind of key by the python attribute, not the db field name.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Semicolons are important. Very important.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Updates part of the code to use the new has_access method for key masks, fixes a bug related to adding new keys, and moves the validation code to the proper place.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Removes extraneous call that duplicating work when adding keys.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Applies the EVEKeyMask object to the mask fields of APICall and ApplicationGrant.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds new KeyMask function that reveals the number of EVE API functions the key mask provides access to, and updates the code to use the new function.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
FIxes another place where has_access was needed.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge pull request #155 from Acidity/fixKeyHandling

Makes EVE API key access and usage more readable.