Merge oublié #1
@ -3,6 +3,7 @@ from model.Protocol import *
|
||||
import traceback
|
||||
import os.path
|
||||
|
||||
|
||||
class AppController:
|
||||
def __init__(self, parser):
|
||||
self.parser = parser
|
||||
@ -19,8 +20,8 @@ class AppController:
|
||||
print("[AppController::on_sign]")
|
||||
try:
|
||||
if not self.connection.is_connected:
|
||||
print("[AppController::on_sign] connecting ... calling UnicastConnection::connect")
|
||||
self.connect(host, port, tls)
|
||||
print("[AppController::on_sign] connecting ... calling UnicastConnection::connect")
|
||||
self.connect(host, port, tls)
|
||||
if not register:
|
||||
message = self.parser.build_SIGNIN(login, passw)
|
||||
else:
|
||||
@ -41,7 +42,7 @@ class AppController:
|
||||
def get_filename_size_from_item(self, item):
|
||||
tokens = item.split('!')
|
||||
if len(tokens) == 2:
|
||||
return (tokens[0],tokens[1])
|
||||
return (tokens[0], tokens[1])
|
||||
else:
|
||||
return None
|
||||
|
||||
@ -117,7 +118,7 @@ class AppController:
|
||||
elif message_id == Protocol.PARSE_REMOVEFILEERROR:
|
||||
self.show_message("Error while erasing file.", True)
|
||||
|
||||
def show_message(self,message, is_error):
|
||||
def show_message(self, message, is_error):
|
||||
self.window_controller.show_message(message, is_error)
|
||||
|
||||
def connect(self, host, port, tls):
|
||||
|
BIN
ffe.labo.swilabus.com.p12
Normal file
BIN
ffe.labo.swilabus.com.p12
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user