refs #702 remove unused code

pull/9/head
Natalia Serrano 2024-09-13 11:05:26 +02:00 committed by Natalia Serrano
parent cc3146c15f
commit a97755e368
1 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@
import base64 import base64
import os import os
import random #import random
import shutil import shutil
import string import string
import threading import threading
@ -74,10 +74,10 @@ def check_secret (fnc):
class ogAdmClientWorker (ServerWorker): class ogAdmClientWorker (ServerWorker):
name = 'ogAdmClient' # Module name name = 'ogAdmClient' # Module name
interface = None # Bound interface for OpenGnsys #interface = None # Bound interface for OpenGnsys (el otro modulo lo usa para obtener .ip y .mac
REST = None # REST object REST = None # REST object
random = None # Random string for secure connections #random = None # Random string for secure connections
length = 32 # Random string length #length = 32 # Random string length
def onDeactivation (self): def onDeactivation (self):
""" """
@ -437,7 +437,7 @@ class ogAdmClientWorker (ServerWorker):
self.idaula = None ## Identificador del aula self.idaula = None ## Identificador del aula
# Generate random secret to send on activation # Generate random secret to send on activation
self.random = ''.join (random.choice (string.ascii_lowercase + string.digits) for _ in range (self.length)) #self.random = ''.join (random.choice (string.ascii_lowercase + string.digits) for _ in range (self.length))
# Ensure cfg has required configuration variables or an exception will be thrown # Ensure cfg has required configuration variables or an exception will be thrown
try: try:
url = self.service.config.get ('ogAdmClient', 'remote') url = self.service.config.get ('ogAdmClient', 'remote')