diff options
author | Tim Potter <tpot@samba.org> | 2003-12-17 02:18:36 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-12-17 02:18:36 +0000 |
commit | f9b522cfada29f3b0116a059d242b0c30ee6aaad (patch) | |
tree | d551f0bf69515aa4caeb968645df54affe1df1aa /source4/python/gprinterdata | |
parent | 7efa19cd2285617dcb39d67a81a821b5119c3748 (diff) | |
download | samba-f9b522cfada29f3b0116a059d242b0c30ee6aaad.tar.gz samba-f9b522cfada29f3b0116a059d242b0c30ee6aaad.tar.bz2 samba-f9b522cfada29f3b0116a059d242b0c30ee6aaad.zip |
Delete old python bindings.
(This used to be commit d7b680899fedb0b6f8169845791d7284e8d203ba)
Diffstat (limited to 'source4/python/gprinterdata')
-rwxr-xr-x | source4/python/gprinterdata | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/source4/python/gprinterdata b/source4/python/gprinterdata deleted file mode 100755 index cd062076c0..0000000000 --- a/source4/python/gprinterdata +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python - -import sys -from gtkdictbrowser import GtkDictBrowser, hex_string -import gtk -from samba import spoolss -import string -import printerdata - -# Initialise printerdata dictionary - -if len(sys.argv) < 2 or len(sys.argv) > 3: - print "Usage: gprinterdata [--ex] <printer>" - print "where <printer> is a UNC printer name." - sys.exit(1) - -try: - host = string.replace(sys.argv[len(sys.argv) - 1], "/", "\\") - if sys.argv[1] == "--ex": - t = printerdata.printerdata_ex(host) - else: - t = printerdata.printerdata(host) -except: - print "gprinterdata: error opening %s" % sys.argv[len(sys.argv) - 1] - sys.exit(1) - -# Create interface - -db = GtkDictBrowser(t) -db.register_get_value_text_fn("", hex_string) -db.build_ui('gprinterdata') - -# Override Python's handling of ctrl-c so we can break out of the -# gui from the command line. - -import signal -signal.signal(signal.SIGINT, signal.SIG_DFL) - -gtk.mainloop() |