Ticket #48 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Only global skipinitialwait read from config file

Reported by: bse Owned by: jerome
Priority: major Milestone:
Component: pykota Version:
Keywords: Cc:


When trying to configure skipinitialwait for a particular printer, I could not get it to work. Only global setting worked. It seems that the code in hardware.py is using the printers IP-adress, instead of the queuname when parsing the config file for this variable.

This means that if I have a printer pluto, with IP-adress planet.9.solar.system, I need two stanzas in the file,


skipinitialwait = yes

This makes it harder to administrate, and when I am writing the config file for pykota, I do not always know the IP-adress for the printer, it can even be changed anytime.

I changed "printer" to "self.filter.PrinterName?" in hardware.py to make it work. (I am not a Python programmer, so there must be at better way of doing it). Is it printer.Name ??

printer is the IP-adress,
self.filter.PrinterName? is the queuename

In file hardware.py" lines approx. 110 - 120

def askPrinterPageCounter(self, printer) :

"""Returns the page counter from the printer via an external command.

The external command must report the life time page number of the printer on stdout.

skipinitialwait = self.filter.config.getPrinterSkipInitialWait(printer)


This is in 1.26_official, but it seems that the same behaviuor is in current code, revision 3489, root/pykota/trunk/pykota/accounters/hardware.py


Change History

Changed 12 years ago by jerome

  • status changed from new to closed
  • resolution set to fixed

(In [3509]) Thanks again to Börje Sennung. Fixes #48.

Changed 12 years ago by jerome

(In [3511]) Backported the code that fixed #48.

Note: See TracTickets for help on using tickets.