mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Put helper in cryptohelper
This commit is contained in:
parent
9e5abe8014
commit
e6a577c172
7
app/classes/helpers/cryptography_helper.py
Normal file
7
app/classes/helpers/cryptography_helper.py
Normal file
@ -0,0 +1,7 @@
|
||||
class CryptoHelper:
|
||||
def __init__(self, helper):
|
||||
self.helper = helper
|
||||
self.test = "hello world"
|
||||
|
||||
def say_hello_world(self):
|
||||
print(self.test)
|
@ -25,6 +25,7 @@ from contextlib import redirect_stderr, suppress
|
||||
import libgravatar
|
||||
from packaging import version as pkg_version
|
||||
|
||||
from app.classes.helpers.cryptography_helper import CryptoHelper
|
||||
from app.classes.shared.null_writer import NullWriter
|
||||
from app.classes.shared.console import Console
|
||||
from app.classes.shared.installer import installer
|
||||
@ -82,6 +83,7 @@ class Helpers:
|
||||
self.ignored_names = ["crafty_managed.txt", "db_stats"]
|
||||
self.crafty_starting = False
|
||||
self.minimum_password_length = 8
|
||||
self.crypto_helper = CryptoHelper(self)
|
||||
|
||||
@staticmethod
|
||||
def auto_installer_fix(ex):
|
||||
|
Loading…
Reference in New Issue
Block a user