Updating example plugin zip file, python3 is default utf8

and added in pre/post examples
This commit is contained in:
chris
2020-08-11 02:13:50 -04:00
parent cd593be291
commit 50dfd644e0
12 changed files with 16 additions and 22 deletions

View File

@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from django.contrib import admin
# Register your models here.

View File

@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from django.apps import AppConfig

View File

@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
# Create your models here.

View File

@@ -0,0 +1,4 @@
#!/usr/local/CyberCP/bin/python
RESET='\033[0;0m'
BLUE="\033[0;34m"
print(BLUE + "Running Post-Install Script..." + RESET)

View File

@@ -0,0 +1,4 @@
#!/usr/local/CyberCP/bin/python
RESET='\033[0;0m'
GREEN='\033[0;32m'
print(GREEN + "Running Pre-Install Script..." + RESET)

View File

@@ -3,6 +3,7 @@ from django.http import HttpResponse
from websiteFunctions.signals import postWebsiteDeletion
from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging
# This plugin respond to an event after CyberPanel core finished deleting a website.
# Original request object is passed, body can be accessed with request.body.

View File

@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from django.test import TestCase
# Create your tests here.

View File

@@ -2,6 +2,5 @@ from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.examplePlugin, name='examplePlugin'),
]

View File

@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
from django.shortcuts import render, HttpResponse
# Create your views here.
def examplePlugin(request):

Binary file not shown.