Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addPrinter only accepts 'name' #45

Open
EDKarlsson opened this issue Dec 5, 2022 · 1 comment
Open

addPrinter only accepts 'name' #45

EDKarlsson opened this issue Dec 5, 2022 · 1 comment

Comments

@EDKarlsson
Copy link

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.

@EDKarlsson
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant