tjfontaine / airprint-generate

Automatically generate AirPrint Avahi service files for CUPS printers
http://www.atxconsulting.com/blog/tjfontaine/2010/11/21/automatically-generate-airprint-avahi-service-files-cups-printers
400 stars 119 forks source link

Duplex and Color support #3

Open toptnc opened 12 years ago

toptnc commented 12 years ago

Since Duplex attribute is not mapped in printer attributes, I suggest to add a "Duplex=T" into XML_TEMPLATE. To include a color atribute simply add this.

             colorsup = Element('txt-record')
             colorsup.text = 'Color=%s' % (str(attrs['color-supported'])[0])
             service.append(colorsup)