def set_serial_key(self, serial_key): if serial_key and not valid_serial_key(serial_key): log.error("The provided serial key has an incorrect encoding.") log.info("Example encoding, AAAAA-BBBBB-CCCCC-DDDDD-EEEEE.") return False # https://technet.microsoft.com/en-us/library/jj612867.aspx self.serial_key = serial_key or self.dummy_serial_key return True
def set_serial_key(self, serial_key): if serial_key and not valid_serial_key(serial_key): log.error('The provided serial key has an incorrect encoding.') log.info('Example encoding, AAAAA-BBBBB-CCCCC-DDDDD-EEEEE.') return False # https://technet.microsoft.com/en-us/library/jj612867.aspx self.serial_key = serial_key or '33PXH-7Y6KF-2VJC9-XBBR8-HVTHH' return True
def set_serial_key(self, serial_key): if serial_key and not valid_serial_key(serial_key): log.error('The provided serial key has an incorrect encoding.') log.info('Example encoding, AAAAA-BBBBB-CCCCC-DDDDD-EEEEE.') return False # https://technet.microsoft.com/en-us/library/jj612867.aspx self.serial_key = serial_key or 'W269N-WFGWX-YVC9B-4J6C9-T83GX' return True
def set_serial_key(self, serial_key): if not serial_key: log.error('No serial key has been provided - please do so!') return False if not valid_serial_key(serial_key): log.error('The provided serial key has an incorrect encoding.') log.info('Example encoding, AAAAA-BBBBB-CCCCC-DDDDD-EEEEE.') return False self.serial_key = serial_key return True
def set_serial_key(self, serial_key): if not serial_key: log.error("No serial key has been provided - please do so!") return False if not valid_serial_key(serial_key): log.error("The provided serial key has an incorrect encoding.") log.info("Example encoding, AAAAA-BBBBB-CCCCC-DDDDD-EEEEE.") return False self.serial_key = serial_key return True