mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 20:22:57 -06:00
[FIX][document_sftp] Protect import
This module has an unprotected import that breaks the system when `paramiko` is not installed. @Tecnativa
This commit is contained in:
parent
b6faa0e4c2
commit
dc56655ca2
@ -1,7 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# © 2016 Therp BV <http://therp.nl>
|
# © 2016 Therp BV <http://therp.nl>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
import paramiko
|
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
import StringIO
|
import StringIO
|
||||||
@ -9,6 +8,7 @@ import threading
|
|||||||
from openerp import SUPERUSER_ID, api, models
|
from openerp import SUPERUSER_ID, api, models
|
||||||
from openerp.modules.registry import RegistryManager
|
from openerp.modules.registry import RegistryManager
|
||||||
try:
|
try:
|
||||||
|
import paramiko
|
||||||
from ..document_sftp_transport import DocumentSFTPTransport
|
from ..document_sftp_transport import DocumentSFTPTransport
|
||||||
from ..document_sftp_server import DocumentSFTPServer
|
from ..document_sftp_server import DocumentSFTPServer
|
||||||
from ..document_sftp_sftp_server import DocumentSFTPSftpServerInterface,\
|
from ..document_sftp_sftp_server import DocumentSFTPSftpServerInterface,\
|
||||||
|
Loading…
Reference in New Issue
Block a user