zprinter.py
def _is_available_unix(self):
        """ Find a previously discovered printer, for Unix.

        This method is far from perfect. It's just seeing what devices
        are attached on the USB port but isn't actually confirming
        any devices found are properly set up with the CUPS server.

        However, it is assumed that if the device has been attached via
        USB, it probably was also setup with CUPS.

        Another possible issue will occur if two similar printers are
        used or attached at the same time. This code is not able to
        distinguish one similarly named printer from another - although
        (TODO) a future developer may wantr to see if the lsusb ID
        information can be used to manage this.
        """
        devices = self._get_device_list()
        is_available = False
        for line in devices:
            for keyword in self.keywords:
                if keyword in line:
                    is_available = True

        return is_available
 Find a previously discovered printer, for Unix.

        This method is far from perfect. It's just seeing what devices
        are attached on the USB port but isn't actually confirming
        any devices found are properly set up with the CUPS server.

        However, it is assumed that if the device has been attached via
        USB, it probably was also setup with CUPS.

        Another possible issue will occur if two similar printers are
        used or attached at the same time. This code is not able to
        distinguish one similarly named printer from another - although
        (TODO) a future developer may wantr to see if the lsusb ID
        information can be used to manage this.
        
Find a previously discovered printer, for Unix.
This method is far from perfect. It's just seeing what devices
are attached on the USB port but isn't actually confirming
any devices found are properly set up with the CUPS server.

However, it is assumed that if the device has been attached via
USB, it probably was also setup with CUPS.

Another possible issue will occur if two similar printers are
used or attached at the same time. This code is not able to
distinguish one similarly named printer from another - although
(TODO) a future developer may wantr to see if the lsusb ID
information can be used to manage this.
Find a previously discovered printer for Unix . This method is far from perfect . It ' s just seeing what devices are attached on the USB port but isn ' t actually confirming any devices found are properly set up with the CUPS server . However it is assumed that if the device has been attached via USB it probably was also setup with CUPS . Another possible issue will occur if two similar printers are used or attached at the same time . This code is not able to distinguish one similarly named printer from another - although ( TODO ) a future developer may wantr to see if the lsusb ID information can be used to manage this .
def _is_available_unix(self):
        devices = self._get_device_list()
        is_available = False
        for line in devices:
            for keyword in self.keywords:
                if keyword in line:
                    is_available = True
        return is_available
def _is_available_unix ( self ) : devices = self . _get_device_list ( ) is_available = False for line in devices : for keyword in self . keywords : if keyword in line : is_available = True return is_available
Find a previously discovered printer, for Unix.
Find a previously discovered printer for Unix .
""" Find a previously discovered printer, for Unix.

        This method is far from perfect. It's just seeing what devices
        are attached on the USB port but isn't actually confirming
        any devices found are properly set up with the CUPS server.

        However, it is assumed that if the device has been attached via
        USB, it probably was also setup with CUPS.

        Another possible issue will occur if two similar printers are
        used or attached at the same time. This code is not able to
        distinguish one similarly named printer from another - although
        (TODO) a future developer may wantr to see if the lsusb ID
        information can be used to manage this.
        """
self