mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-02 19:35:49 +01:00
Plugin installer
This commit is contained in:
29
packages/signals.py
Normal file
29
packages/signals.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# 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 package template, this special event is used
|
||||
## to create a beautiful names official plugin. Actual package creation happes with event named preSubmitPackage and postSubmitPackage.
|
||||
preCreatePacakge = Signal(providing_args=["request"])
|
||||
|
||||
## See info for preCreatePacakge
|
||||
postCreatePacakge = Signal(providing_args=["request", "response"])
|
||||
|
||||
## This event is fired before CyberPanel core start creation a package.
|
||||
preSubmitPackage = Signal(providing_args=["request"])
|
||||
|
||||
## This event is fired after CyberPanel core finished creation of a package.
|
||||
postSubmitPackage = Signal(providing_args=["request", "response"])
|
||||
|
||||
## This event is fired before CyberPanel core start deletion of a package.
|
||||
preSubmitDelete = Signal(providing_args=["request"])
|
||||
|
||||
## This event is fired after CyberPanel core finished deletion of a package.
|
||||
postSubmitDelete = Signal(providing_args=["request", "response"])
|
||||
|
||||
## This event is fired before CyberPanel core start to modify a package.
|
||||
preSaveChanges = Signal(providing_args=["request"])
|
||||
|
||||
## This event is fired after CyberPanel core finished modifying a package.
|
||||
postSaveChanges = Signal(providing_args=["request", "response"])
|
||||
Reference in New Issue
Block a user