mirror of
				https://github.com/usmannasir/cyberpanel.git
				synced 2025-10-31 10:26:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.1 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 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()
 | |
| 
 | |
| ## See info for preCreatePacakge
 | |
| postCreatePacakge = Signal()
 | |
| 
 | |
| ## This event is fired before CyberPanel core start creation a package.
 | |
| preSubmitPackage = Signal()
 | |
| 
 | |
| ## This event is fired after CyberPanel core finished creation of a package.
 | |
| postSubmitPackage = Signal()
 | |
| 
 | |
| ## This event is fired before CyberPanel core start deletion of a package.
 | |
| preSubmitDelete = Signal()
 | |
| 
 | |
| ## This event is fired after CyberPanel core finished deletion of a package.
 | |
| postSubmitDelete = Signal()
 | |
| 
 | |
| ## This event is fired before CyberPanel core start to modify a package.
 | |
| preSaveChanges = Signal()
 | |
| 
 | |
| ## This event is fired after CyberPanel core finished modifying a package.
 | |
| postSaveChanges = Signal() |