3
6ßL]  ã               @   s4   d dl mZ d dlmZmZmZ G dd„ deƒZdS )é    )ÚAction)ÚInstanceÚ	InterfaceÚListc               @   s@   e Zd ZdZeeeƒƒZeedƒƒZdd„ Z	dd„ Z
dd„ Zd	S )
ÚIPolicyManagerzßThe interface implemented by a policy manager.  A policy manager defines
    how permissions are assigned to users and stored.  A default policy manager
    is provided, but it may be replaced using the permissions manager.z#apptools.permissions.api.Permissionc             C   s   dS )zvReturn True if the policy manager is bootstrapping.  Typically this
        is when no permissions have been assigned.N© )Úselfr   r   úK/tmp/pip-install-5sebvq2j/apptools/apptools/permissions/i_policy_manager.pyÚbootstrapping    s    zIPolicyManager.bootstrappingc             C   s   dS )z™Load the policy for the given user.  user is an object that
        implements IUser.  If it is None then unload the policy for the current
        user.Nr   )r   Úuserr   r   r	   Ú	load_user$   s    zIPolicyManager.load_userc             C   s   dS )z9Register the given permission defined by the application.Nr   )r   Z
permissionr   r   r	   Úregister_permission)   s    z"IPolicyManager.register_permissionN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Zmanagement_actionsZuser_permissionsr
   r   r   r   r   r   r	   r      s   r   N)Zpyface.action.apir   Z
traits.apir   r   r   r   r   r   r   r	   Ú<module>   s   