Files
CyberPanel/databases/signals.py

28 lines
1.1 KiB
Python
Raw Normal View History

2018-10-08 22:12:05 +05:00
# The world is a prison for the believer.
from django.dispatch import Signal
## This event is fired before CyberPanel core load the create database template, this special event is used
## to create a beautiful names official plugin. Actual FTP account creation happens with event named preSubmitDBCreation and postSubmitDBCreation.
2024-08-04 23:54:32 +05:00
preCreateDatabase = Signal()
2018-10-08 22:12:05 +05:00
## See preCreateDatabase
2024-08-04 23:54:32 +05:00
postCreateDatabase = Signal()
2018-10-08 22:12:05 +05:00
## This event is fired before CyberPanel core start creation of a database.
2024-08-04 23:54:32 +05:00
preSubmitDBCreation = Signal()
2018-10-08 22:12:05 +05:00
## This event is fired after CyberPanel core finished creation of a database.
2024-08-04 23:54:32 +05:00
postSubmitDBCreation = Signal()
2018-10-08 22:12:05 +05:00
## This event is fired before CyberPanel core start deletion of a database
2024-08-04 23:54:32 +05:00
preSubmitDatabaseDeletion = Signal()
2018-10-08 22:12:05 +05:00
## This event is fired after CyberPanel core finished deletion of a database.
2024-08-04 23:54:32 +05:00
postSubmitDatabaseDeletion = Signal()
2018-10-08 22:12:05 +05:00
## This event is fired before CyberPanel core start to change a database password.
2024-08-04 23:54:32 +05:00
preChangePassword = Signal()
2018-10-08 22:12:05 +05:00
## This event is fired after CyberPanel core finished changing database password.
2024-08-04 23:54:32 +05:00
postChangePassword = Signal()