From c336491c0ecfc24e3aacdc8b84b3cc4ed08c2cf7 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Mon, 30 Sep 2013 13:03:49 +0200 Subject: [PATCH] [IMP] base_report_to_printer - clean imports --- base_report_to_printer/__init__.py | 4 ++-- base_report_to_printer/printing.py | 15 +++++---------- base_report_to_printer/wizard/__init__.py | 2 +- base_report_to_printer/wizard/update_printers.py | 6 +----- 4 files changed, 9 insertions(+), 18 deletions(-) diff --git a/base_report_to_printer/__init__.py b/base_report_to_printer/__init__.py index 456cc25..f97883c 100644 --- a/base_report_to_printer/__init__.py +++ b/base_report_to_printer/__init__.py @@ -21,5 +21,5 @@ # along with this program. If not, see . # ############################################################################## -import printing -import wizard +from . import printing +from . import wizard diff --git a/base_report_to_printer/printing.py b/base_report_to_printer/printing.py index b77aac0..4b9555c 100644 --- a/base_report_to_printer/printing.py +++ b/base_report_to_printer/printing.py @@ -23,24 +23,19 @@ ############################################################################## import os +import time import base64 -import threading from tempfile import mkstemp +import logging import cups -import thread from threading import Thread from threading import Lock -import netsvc -import tools -import time +from openerp import pooler from openero.osv import orm, fields -import pooler -import tools -from tools.translate import _ -from base_calendar import base_calendar -import logging +from openerp.tools.translate import _ +from openerp.addons.base_calendar import base_calendar # diff --git a/base_report_to_printer/wizard/__init__.py b/base_report_to_printer/wizard/__init__.py index ad46a5d..926dc43 100644 --- a/base_report_to_printer/wizard/__init__.py +++ b/base_report_to_printer/wizard/__init__.py @@ -20,4 +20,4 @@ # along with this program. If not, see . # ############################################################################## -import update_printers +from . import update_printers diff --git a/base_report_to_printer/wizard/update_printers.py b/base_report_to_printer/wizard/update_printers.py index ff6b8d7..9b7a240 100644 --- a/base_report_to_printer/wizard/update_printers.py +++ b/base_report_to_printer/wizard/update_printers.py @@ -21,13 +21,9 @@ # ############################################################################## -import time -import subprocess import cups -import netsvc -from openerp.osv import orm, fields -from tools.translate import _ +from openerp.osv import orm class printing_printer_update_wizard(orm.TransientModel):