def print_error(self, outstr):
    if self.allow_print.isSet():
        framework.Framework.print_error(self, outstr)
def print_error(self, outstr):
    if self.allow_print.isSet():
        framework.Framework.print_error(self, outstr)