typo in python/samba/printerdata.py
daniel.jarboe at custserv.com
daniel.jarboe at custserv.com
Tue Sep 28 14:17:55 GMT 2004
diff -u attached to fix scope problem in printerdata_ex.__getitem__
~ Daniel
Before:
>>> pdex=printerdata.printerdata_ex(UNC,creds)
>>> pdex.keys()
['PrinterDriverData', 'DsSpooler', 'DsDriver', 'DsUser']
>>> pdex['PrinterDriverData']
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/lib-dynload/samba/printerdata.py", line 65,
in __getitem__
return self.printerdata_ex_subkey(self.host, key, creds, access)
NameError: global name 'creds' is not defined
After:
>>> pdex=printerdata.printerdata_ex(UNC,creds)
>>> pdex.keys()
['PrinterDriverData', 'DsSpooler', 'DsDriver', 'DsUser']
>>> pdex['PrinterDriverData']
<samba.printerdata.printerdata_ex_subkey instance at 0x61af30>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba3.python.printerdata.patch
Type: application/octet-stream
Size: 435 bytes
Desc: samba3.python.printerdata.patch
Url : http://lists.samba.org/archive/samba-technical/attachments/20040928/2537526f/samba3.python.printerdata.obj
More information about the samba-technical
mailing list