Possible to set printer devmode using samba3-python?

daniel.jarboe at custserv.com daniel.jarboe at custserv.com
Wed Nov 12 19:53:34 GMT 2003


> can you sned the scripts to the list so that everybody can 
> see how it works?

Well, that's part of the problem: right now the setprinter stuff doesn't
work for me yet.  The "printer accessories" using PrinterData works
though.  See attached script, which copies the printer accessories from
one printer share to another share on the same host.  This effectively
copies the installed "accessories" settings.  This is just my test
script, not robust at all: basically me messing around with something I
have little doc for to figure out how to use it.

What I'm sending works for me with python 2.2.1, with the samba helpers
installed (samba 3.0.1pre2) on linux (SLES 8 s/390).

~ Daniel

-----------------------------------------------------------------------

This message is the property of Time Inc. or its affiliates. It may be
legally privileged and/or confidential and is intended only for the use
of the addressee(s). No addressee should forward, print, copy, or
otherwise reproduce this message in any manner that would allow it to be
viewed by any individual not originally listed as a recipient. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorized disclosure, dissemination, distribution,
copying or the taking of any action in reliance on the information
herein is strictly prohibited. If you have received this communication
in error, please immediately notify the sender and delete this message.
Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clone_printers.py
Type: application/octet-stream
Size: 3497 bytes
Desc: clone_printers.py
Url : http://lists.samba.org/archive/samba-technical/attachments/20031112/2aa91c6f/clone_printers.obj


More information about the samba-technical mailing list