Thank you very much. Will try as soon as you put out the new tarball. Till
dwelch91 wrote: > Till, I applied the patch into 1.66a for testing. My results so far is > that it is OK. > > -Don > > > Till Kamppeter wrote: > >>Thanks for the patch. >> >>I forward this upstream, so that in the future HPLIP and BEH will simply >>work together. >> >>Dave, Don, what about applying this patch? >> >> Till >> >> >>Matthias Bethke wrote: >> >>>To fully utilize the capabilities of our HP LaserJets I recently installed >>>HPLIP and was quite pissed off at the fact that it doesn't work with BEH---I >>>had almost forgotten how much work BEH had saved me killing users' stuck >>>print >>>jobs and manually restarting the printer in CUPS. So I started digging in the >>>HPLIP sources today and got it working with a trivial patch: >>> >>># diff /usr/share/hplip/base/device.py.orig /usr/share/hplip/base/device.py >>>47c47 >>>< pat_deviceuri = >>>re.compile(r"""(.*?):/(.*?)/(\S*?)\?(?:serial=(\S*)|device=(\S*)|ip=(\d{1,3}\.\ >>>d{1,3}\.\d{1,3}\.\d{1,3}[^&]*))(?:&port=(\d))?""", re.IGNORECASE) >>>--- >>> >>> >>>>pat_deviceuri = >>> >>>re.compile(r"""(.*):/(.*?)/(\S*?)\?(?:serial=(\S*)|device=(\S*)|ip=(\d{1,3}\.\d >>>{1,3}\.\d{1,3}\.\d{1,3}[^&]*))(?:&port=(\d))?""", re.IGNORECASE) >>> >>>I.e. I just removed the first question mark in the RE to make it greedy >>>again. >>>Now it seems to work fine with my printers.conf: >>>DeviceURI >>>beh:/1/3/120/cupspykota:hp:/net/HP_LaserJet_4100_Series?ip=12.34.56.78 >>> >>>This hasn't been tested extensively yet so I may be missing something and the >>>patch might break more that it fixes on other configs, but maybe some of you >>>would like to give it a try. >>>Comments welcome. >>> >>>cheers! >>>Matthias >> >> >>Using Tomcat but need to do more? Need to support web services, security? >>Get stuff done quickly with pre-integrated technology to make your job easier >>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > HPLIP-Devel mailing list > HPLIP-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hplip-devel > > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ HPLIP-Devel mailing list HPLIP-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hplip-devel