From b178ac7c6e2d7fa24c1b8896e74361bce650258c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 17 Aug 2015 12:37:53 -0500 Subject: [PATCH] Refactor some config usage per rattail changes. --- rattail_cognitive/labels.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/rattail_cognitive/labels.py b/rattail_cognitive/labels.py index 230cb94..87170f8 100644 --- a/rattail_cognitive/labels.py +++ b/rattail_cognitive/labels.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2012 Lance Edgar +# Copyright © 2010-2015 Lance Edgar # # This file is part of Rattail. # @@ -21,14 +20,13 @@ # along with Rattail. If not, see . # ################################################################################ - """ Label Printing """ -from cStringIO import StringIO +from __future__ import unicode_literals -import edbob +from cStringIO import StringIO from rattail import labels @@ -55,7 +53,7 @@ class BlasterFormatter(labels.CommandFormatter): ] def label_footer_commands(self): - noindex = edbob.config.getboolean( + noindex = self.config.getbool( 'rattail.hw.cognitive', 'blaster.hack_noindex', default=False) if noindex: return [