printerdata.py wrapper still has scope problem (3.0.8pre2)
daniel.jarboe at custserv.com
daniel.jarboe at custserv.com
Thu Oct 28 12:04:46 GMT 2004
__getitem__ needs to return self.printerdata_ex_subkey(self.host, key,
self.creds, self.access) instead of
self.printerdata_ex_subkey(self.host, key, self.creds, access). Without
self.access there is a scope problem and an exception is thrown (global
name 'access' is not defined).
This
http://marc.theaimsgroup.com/?l=samba-technical&m=109638111916862&q=p3
patch was applied incompletely (only self.creds was checked in, not
self.access).
~ Daniel
--- printerdata.py.orig 2004-10-28 07:56:17.000000000 -0400
+++ printerdata.py 2004-10-28 07:56:24.000000000 -0400
@@ -62,4 +62,4 @@
return self.hnd.getprinterdataex(self.key, key)['data']
def __getitem__(self, key):
- return self.printerdata_ex_subkey(self.host, key, self.creds,
access)
+ return self.printerdata_ex_subkey(self.host, key, self.creds,
self.access)
More information about the samba-technical
mailing list