Files
CyberPanel/ftp/signals.py
2018-10-08 22:12:05 +05:00

29 lines
1.4 KiB
Python

# The world is a prison for the believer.
## https://www.youtube.com/watch?v=DWfNYztUM1U
from django.dispatch import Signal
## This event is fired before CyberPanel core load the create ftp template, this special event is used
## to create a beautiful names official plugin. Actual FTP account creation happens with event named preSubmitFTPCreation and postSubmitFTPCreation.
preCreateFTPAccount = Signal(providing_args=["request"])
## See preCreateFTPAccount
postCreateFTPAccount = Signal(providing_args=["request", "response"])
## This event is fired before CyberPanel core start creation of a FTP account.
preSubmitFTPCreation = Signal(providing_args=["request"])
## This event is fired after CyberPanel core finished creation of a FTP account.
postSubmitFTPCreation = Signal(providing_args=["request", "response"])
## This event is fired before CyberPanel core start deletion of a FTP account.
preSubmitFTPDelete = Signal(providing_args=["request"])
## This event is fired after CyberPanel core finished deletion of website
postSubmitFTPDelete = Signal(providing_args=["request", "response"])
## This event is fired before CyberPanel core start deletion of child-domain
preChangePassword = Signal(providing_args=["request"])
## This event is fired after CyberPanel core finished deletion of child-domain
postChangePassword = Signal(providing_args=["request", "response"])