def create_model(self, store): model = ECFPrinter(brand=u'daruma', model=u'FS345', device_name=u'/dev/ttyS0', device_serial=u'', baudrate=9600, station=get_current_station(store), is_active=True, store=store) if platform.system() == 'Windows': model.device_name = u'COM1' return model
def _get_last_document(self, store): printer = self._printer.get_printer() return ECFPrinter.get_last_document(station=printer.station, store=store)