r3521: Collect printer driver names in EnumPrinterDrivers.
authorTim Potter <tpot@samba.org>
Thu, 4 Nov 2004 06:40:28 +0000 (06:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:28 +0000 (13:05 -0500)
source/scripting/swig/torture/spoolss.py

index 35a0a6039fd877606e41e901fa3d356727f40496..a75385e079823b3e76e4e4e97bb61187bf0e36e6 100644 (file)
@@ -408,11 +408,12 @@ def test_EnumPrinterDrivers(pipe):
 
         result = ResizeBufferCall(dcerpc.spoolss_EnumPrinterDrivers, pipe, r)
 
-        for driver in dcerpc.unmarshall_spoolss_DriverInfo_array(
-            result['buffer'], r['level'], result['count']):
-
-            print driver
+        drivers = dcerpc.unmarshall_spoolss_DriverInfo_array(
+            result['buffer'], r['level'], result['count'])
 
+        if level == 1:
+            driver_names = map(lambda x: x['info1']['driver_name'], drivers)
+            
 
 def test_PrintServer(pipe):