Refactor some config usage per rattail changes.

This commit is contained in:
Lance Edgar 2015-08-17 12:37:53 -05:00
parent 9bb5bf813c
commit b178ac7c6e

View file

@ -1,9 +1,8 @@
#!/usr/bin/env python
# -*- 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 <http://www.gnu.org/licenses/>.
#
################################################################################
"""
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 [