Refactor some config usage per rattail changes.
This commit is contained in:
		
							parent
							
								
									9bb5bf813c
								
							
						
					
					
						commit
						b178ac7c6e
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -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 <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 [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue