svn commit: samba r3521 - in branches/SAMBA_4_0/source/scripting/swig/torture: .

tpot at samba.org tpot at samba.org
Thu Nov 4 06:40:29 GMT 2004


Author: tpot
Date: 2004-11-04 06:40:28 +0000 (Thu, 04 Nov 2004)
New Revision: 3521

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3521

Log:
Collect printer driver names in EnumPrinterDrivers.

Modified:
   branches/SAMBA_4_0/source/scripting/swig/torture/spoolss.py


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/torture/spoolss.py
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/torture/spoolss.py	2004-11-04 03:21:44 UTC (rev 3520)
+++ branches/SAMBA_4_0/source/scripting/swig/torture/spoolss.py	2004-11-04 06:40:28 UTC (rev 3521)
@@ -408,12 +408,13 @@
 
         result = ResizeBufferCall(dcerpc.spoolss_EnumPrinterDrivers, pipe, r)
 
-        for driver in dcerpc.unmarshall_spoolss_DriverInfo_array(
-            result['buffer'], r['level'], result['count']):
+        drivers = dcerpc.unmarshall_spoolss_DriverInfo_array(
+            result['buffer'], r['level'], result['count'])
 
-            print driver
+        if level == 1:
+            driver_names = map(lambda x: x['info1']['driver_name'], drivers)
+            
 
-
 def test_PrintServer(pipe):
     
     handle = test_OpenPrinterEx(pipe, None)



More information about the samba-cvs mailing list