Permission Repository Class¶
Permission handler for the ScalyMUCK server. It employs a sort of repository system used for storing and evaluating permissions with variable terms and exceptions.
-
class
permissions.
Permissions
(workdir=None)[source]¶ Main class for permission handling in ScalyMUCK.
-
__init__
(workdir=None)[source]¶ Initializes a new instance of the permissions repository class.
Note
You must pass in a good work directory in order for the permissions repository class to be able to load the server global config/permissions.cfg file.
-
standard_evaluator
(name=None, player=None, value=None)[source]¶ Tests all standard permissions built into the server.
- Keyword arguments:
- name – The name of the permission to attempt to evaluate.
- player – An instance of game.models.Player to evaluate against.
- value – The specific variable used to configure this permission setting.
-