(self)
return True
Do sanity checks on the different settings.
Do sanity checks on the different settings.
Do sanity checks on the different settings .
def check_settings(self):
        '''Do sanity checks on the different settings.'''

        if self.defs.duplex and self.questionnaire.page_count % 2 != 0:
            print(_("A questionnaire that is printed in duplex needs an even amount of pages!"))
            return False

        if self.defs.style == 'classic' and self.questionnaire.page_count > 6:
            print(_("The 'classic' style only supports a maximum of six pages! Use the 'code128' style if you require more pages."))
            return False

        return True
def check_settings ( self ) : if self . defs . duplex and self . questionnaire . page_count % 2 != 0 : print ( _ ( "A questionnaire that is printed in duplex needs an even amount of pages!" ) ) return False if self . defs . style == 'classic' and self . questionnaire . page_count > 6 : print ( _ ( "The 'classic' style only supports a maximum of six pages! Use the 'code128' style if you require more pages." ) ) return False return True