refs #702 remove unused code
parent
9d3a320f36
commit
32d3621923
|
@ -35,7 +35,7 @@
|
|||
|
||||
import base64
|
||||
import os
|
||||
import random
|
||||
#import random
|
||||
import shutil
|
||||
import string
|
||||
import threading
|
||||
|
@ -74,10 +74,10 @@ def check_secret (fnc):
|
|||
|
||||
class ogAdmClientWorker (ServerWorker):
|
||||
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
|
||||
random = None # Random string for secure connections
|
||||
length = 32 # Random string length
|
||||
#random = None # Random string for secure connections
|
||||
#length = 32 # Random string length
|
||||
|
||||
def onDeactivation (self):
|
||||
"""
|
||||
|
@ -437,7 +437,7 @@ class ogAdmClientWorker (ServerWorker):
|
|||
self.idaula = None ## Identificador del aula
|
||||
|
||||
# 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
|
||||
try:
|
||||
url = self.service.config.get ('ogAdmClient', 'remote')
|
||||
|
|
Loading…
Reference in New Issue