Add a generic method for getting a Keyname
This patch will make logic/key_name.py obsolete in the future when
everything is compliant with base.logic.
This also makes the naming of already compliant logic modules generic
and also fixes the _name field to be consistent with the naming in
key_name.py.
Note: This does not use Group/Sponsor, Group/School,
Group/Organisation or Group/Club.
Patch by: "Lennard de Rijk" <rijk0214@gmail.com>
Reviewed by: Sverre Rabbelier
"Global Django exceptions"class ObjectDoesNotExist(Exception): "The requested object does not exist" silent_variable_failure = Trueclass MultipleObjectsReturned(Exception): "The query returned multiple objects when only one was expected." passclass SuspiciousOperation(Exception): "The user did something suspicious" passclass PermissionDenied(Exception): "The user did not have permission to do that" passclass ViewDoesNotExist(Exception): "The requested view does not exist" passclass MiddlewareNotUsed(Exception): "This middleware is not used in this server configuration" passclass ImproperlyConfigured(Exception): "Django is somehow improperly configured" passclass FieldError(Exception): """Some kind of problem with a model field.""" passclass ValidationError(Exception): """An error while validating data.""" pass