403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/erp/accessibility/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/accessibility/__pycache__/signals.cpython-310.pyc
o

hͦhw�@s�dZddlZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZd
d�Zdd
�Zeee
d�dd��Zeeed�dd��Zeee
d�dd��ZdS)z
accessibility/signals.py
�N)�cache)�	post_save)�receiver)�ACCESSIBILITY_CACHE_USER_KEYS)�DefaultAccessibility)�EmployeeWorkInformation)�post_bulk_updatecCs.t����D]\}}|D]}t�|�qqdS�N)r�copy�itemsr�delete)�_user_id�
cache_keys�key�r�%/var/www/erp/accessibility/signals.py�_clear_accessibility_caches
��rcCs,|D]}t�|jjj�}|rt�|�qdSr	)r�get�employee_id�employee_user_id�idrr)�queryset�instance�	cache_keyrrr�_clear_bulk_employees_caches�
��r)�sendercKs6|}|}t���|jjjg�}|D]}t�|�qdS)z7
    This method to track employee instance update
    N)rr
rrrrrr)rr�created�kwargs�_sender�_createdrrrrr�monitor_employee_update s
��r cKs$|}|}|}tjtd�}|��dS�z<
    This method is used to track accessibility updates
    )�targetN)�	threading�Threadr�start)rrrrrr�	_instance�threadrrr�monitor_accessibility_update/s
r(cOs$|}|}tjt|�d�}|��dSr!)r#r$rr%)rr�argsrr�	_querysetr'rrr�monitor_employee_bulk_update;sr+)�__doc__r#�django.core.cacher�django.db.models.signalsr�django.dispatchr�accessibility.middlewaresr�accessibility.modelsr�employee.modelsr�horilla.signalsrrrr r(r+rrrr�<module>s"
	





Youez - 2016 - github.com/yon3zu
LinuXploit