pycups
pycups copied to clipboard
addPrinter only accepts 'name'
I'm trying to utilize the addPrinter method in connection. However, it only accepts a name. The documentation says that there are additional parameters that can be used but the method signature does not allow for args
or kwargs
only name. Am I missing something? I don't see this in the todo file so I'm curious if is yet to be fully implemented. It looks like the cupsconnection.c
supports the additional parameters.
https://github.com/OpenPrinting/pycups/blob/master/cupsconnection.c#L5015
should be changed to "addPrinter(name, filename=None, ppdname=None, info=None, location=None, device=None, ppd=None) -> None\n\n"
. I have a fix at work, and I will create a pull request when I get home.