The Samba-Bugzilla – Attachment 686 Details for
Bug 1851
printerdata_ex data/keys incorrect against W2K3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
sample python script to illustrate problem
printerdataex.py (text/plain), 711 bytes, created by
Daniel Jarboe
on 2004-09-29 10:09:19 UTC
(
hide
)
Description:
sample python script to illustrate problem
Filename:
MIME Type:
Creator:
Daniel Jarboe
Created:
2004-09-29 10:09:19 UTC
Size:
711 bytes
patch
obsolete
>#!/usr/bin/python >from samba import winbind, printerdata >import getpass >import sys > ># possibly set debuglevel >try: > printerdata.spoolss.set_debuglevel(int(sys.argv[1])) > printerdata.spoolss.setup_logging(1) >except: > pass > >print 'spoolss debuglevel:',printerdata.spoolss.get_debuglevel() > >printerUNC='\\\\print-serva\\tc6-w-tech' >user='jarboed' >domain=winbind.config['workgroup'] > >creds={'domain':domain,'username':user,'password':getpass.getpass('%s %s password: '%(domain,user))} > >pdex=printerdata.printerdata_ex(printerUNC, creds) > >print 'pdex keys:',pdex.keys() >for i in pdex.keys(): > print 'pdex[\'%s\'] keys:'%i, > try: > print pdex[i].keys() > except Exception, e: > print 'Exception: %s'%(e) > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1851
: 686 |
687
|
688
|
700