
    j                     .    d dl mZ  G d de          ZdS )   )Watcherc                   :    e Zd ZdZdegdegfdZdegdegfdZdS )	WatcherUpdatablezK
    WatcherUpdatable is the strengthened version of PyCasbin Watcher.
    old_rulenew_rulec                     dS )z
        update_for_update_policy calls the update callback of other instances to synchronize their policy.
        It is called after Enforcer.UpdatePolicy()
        N )selfr   r   s      g/lsinfo/ai/hellotax_ai/base_platform/venv/lib/python3.11/site-packages/casbin/persist/watcher_update.pyupdate_for_update_policyz)WatcherUpdatable.update_for_update_policy   	    
 	    	old_rules	new_rulesc                     dS )z
        update_for_update_policies calls the update callback of other instances to synchronize their policy.
        It is called after Enforcer.UpdatePolicies()
        Nr	   )r
   r   r   s      r   update_for_update_policiesz+WatcherUpdatable.update_for_update_policies   r   r   N)__name__
__module____qualname____doc__strr   r   r	   r   r   r   r      sj         # 3%    SE se      r   r   N)watcherr   r   r	   r   r   <module>r      sM             w     r   