[IMP] updated travis and readme

This commit is contained in:
oihane
2016-07-04 17:28:56 +02:00
parent 686fd0b335
commit 624dda9cdf
5 changed files with 27 additions and 19 deletions

View File

@@ -21,21 +21,22 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import logging
_logger = logging.getLogger(__name__)
import os
from tempfile import mkstemp
from openerp import models, fields, api, _
from openerp.exceptions import Warning
from openerp.tools.config import config
import logging
_logger = logging.getLogger(__name__)
try:
import cups
except ImportError:
_logger.debug('Cannot `import cups`.')
from openerp import models, fields, api, _
from openerp.exceptions import Warning
from openerp.tools.config import config
CUPS_HOST = config.get('cups_host', 'localhost')
CUPS_PORT = int(config.get('cups_port', 631)) # config.get returns a string