1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-24 15:17:06 +03:00

116 Commits

Author SHA1 Message Date
Tim Potter
c2f5c02e28 Renamed 'printer_name' field in python printer info to 'name' to be
more consistent.
(This used to be commit f8c198b74899d1be1725d0647c5f0cd7db870340)
2002-05-16 05:25:53 +00:00
Tim Potter
9ad364acdb Fix memory leaks and return values in error returns for enumprinters().
Return enumerated printers as a hash of hashes instead of a list of hashes.
(This used to be commit 1d0fd34d42e286fe7a41ca2d122f6bd7dc958b0a)
2002-05-16 05:24:06 +00:00
Tim Potter
66115cf64b Fix memory leaks and return values in error returns for enumports().
Return enumerated ports as a hash of hashes instead of a list of hashes.
(This used to be commit c469ada3d3b12b6a6e243d004faaae5f96cd3d96)
2002-05-16 05:19:30 +00:00
Tim Potter
0227141bd1 Set exception object when enumjobs returns non-zero NT status.
(This used to be commit b1818eb37572f4d30efef998d926ac111e78cb48)
2002-05-16 05:17:43 +00:00
Tim Potter
ce89909493 Fix return value for enumprinterdrivers(), getprinterdriverdir().
Set info level key in getprinterdriverdir() return info.
(This used to be commit cb4bfd39eb83efddb29b3a3bc70c2a8713f80ef2)
2002-05-16 05:16:06 +00:00
Tim Potter
70da1dec97 Shorten some debug messages.
(This used to be commit 179c68bd0db7c2631fcf052a746acacedf3c47ac)
2002-05-16 05:13:50 +00:00
Tim Potter
286d3a80fd More cleanups.
- removed dodgy fprintf() error handling

 - return an error string from open_pipe_creds() so the appropriate
   exception can be raised by the caller

 - reformatting
(This used to be commit d35cad359df3bd53e6bb49f6655d4c7b9993abb0)
2002-05-16 04:00:31 +00:00
Tim Potter
ce03ce2e56 Refactored open_pipe_creds() function to remove unused parameter.
(This used to be commit 36ed06cb5078429445f3bbb0f69baa2e0f8356a4)
2002-05-16 02:24:22 +00:00
Tim Potter
ea8c45bbfd Added addjob command.
(This used to be commit e4cc7e2d521cb2777c15c00ec222342e2a0b02ca)
2002-05-16 02:01:23 +00:00
Tim Potter
932b8e9d40 Cleaned up help docstrings.
(This used to be commit a8fcb151f8ff601774c302b61e694b4522461068)
2002-05-16 01:33:38 +00:00
Tim Potter
5951e762d5 Renamed functions that are methods of a printer handle object from
spoolss_* to spoolss_hnd_* to make things a bit clearer.
(This used to be commit 986d868837350e9b107c147e649f139fd7d881f0)
2002-05-15 06:22:53 +00:00
Tim Potter
c4d0a4c5f8 make proto
(This used to be commit 4fe9f83998a3b669b2190b0c71908fe2d9f915fd)
2002-05-15 06:11:52 +00:00
Tim Potter
dfd1953542 Method entry for addprinterex()
(This used to be commit 1ad82cd0c3f76a629b8fc2e1b02e57b8e97829dd)
2002-05-15 06:10:45 +00:00
Tim Potter
7c0ff78f3e Fixed a memory leak in enumprinters.
Started addprinterex() - doesn't work yet.
(This used to be commit b56bf8f43efbb356ecacf13b96cee7f07386d83d)
2002-05-15 06:09:47 +00:00
Tim Potter
fb986ce8ae Comment that deleteprinterdataex isn't supported by a samba server.
(This used to be commit c07d583327fa194547d1bd41fdb12b25f24e88f7)
2002-05-15 06:05:00 +00:00
Tim Potter
c0c95a271a Return a dictionary of printer drivers in enumprinterdrivers() instead of a
list.

Started addprinterdriver() - doesn't work yet.

Added stubs for deleteprinterdriver routines.
(This used to be commit e3c27d7d1093743124cad573e781547a9a2f659f)
2002-05-15 06:03:09 +00:00
Tim Potter
130d8ec7b0 Implement py_to_DRIVER_INFO_3()
(This used to be commit ced14ea913b55c87a8dd177080e711cfc16935c3)
2002-05-15 05:59:12 +00:00
Tim Potter
8ca814e529 Added lots of new functions to the method tables.
(This used to be commit a8f5951becaab82bb1b03e3e04a05901ec3aa8e3)
2002-05-14 07:15:43 +00:00
Tim Potter
034a0b46c7 make proto
(This used to be commit 0c52191cc5b986fbb50a476442e808d5e161e534)
2002-05-14 07:14:15 +00:00
Tim Potter
d8b60d56fb Added deleteprinterdata function.
Stub for deleteprinterdataex.
(This used to be commit 14acdbf06dec517a4f2fee5904cae1c0b72a90aa)
2002-05-14 07:13:25 +00:00
Tim Potter
60f4e9dccc Fixed bug in enumprinterdrivers.
Added stubs for addprinterdriver and deleteprinterdriver functions.
(This used to be commit ca315ef84ff949edfbf0a8df0ae2128a97fc3ac5)
2002-05-14 07:11:31 +00:00
Tim Potter
ceb338a35c Moved PyDict_SetItemString for printer info level structures into conv functions.
(This used to be commit f7fadfdd73d3ba12dbfc7bf18319ce72f79a0dcc)
2002-05-14 07:09:54 +00:00
Tim Potter
2e6939cf0b Added writeprinter command.
(This used to be commit 307788d0b823f228c718b2a186fc66144fd55717)
2002-05-14 06:09:59 +00:00
Tim Potter
762d52feba Added enumprinterdata.
(This used to be commit 7a15ce7c0c6a6b3a62dd6607fefc32742fa50308)
2002-05-14 05:01:04 +00:00
Tim Potter
520b40e423 General cleanup of compiler warnings etc.
(This used to be commit 18aeadc591b69bbbd874b7285ecaed50ff587e68)
2002-05-14 02:37:47 +00:00
Tim Potter
4662d9b896 Added entry for winreg extension.
Added extra source file for printerdata routines.
(This used to be commit 34a0293a04cecf20c05a2d09d1ecda64538ca529)
2002-05-13 07:30:41 +00:00
Tim Potter
b2606aaa80 Updated patch.
(This used to be commit 0851f473b7705a3d95dc2727cd7986295d2733ff)
2002-05-13 07:29:38 +00:00
Tim Potter
27c0ce7d11 Removed irritating CR at end of file.
(This used to be commit 2811ac99a1fcc2be02f89a418fe00c99c2bba81c)
2002-05-13 07:28:16 +00:00
Tim Potter
62f63f96e1 Added getprinterdata and setprinterdata functions.
(This used to be commit 325361e9e6e2b2f852cc8607ad93108b80bcef06)
2002-05-13 07:27:20 +00:00
Tim Potter
5ead26e30b Registry module. Only contains REG_xxx constants used by the spoolss
printerdata routines at the moment.
(This used to be commit f2b9447bbdfe025b24a73d1c44885bcadb3f826f)
2002-05-13 06:04:07 +00:00
Tim Potter
950004e125 Added startdocprinter and enddocprinter.
(This used to be commit 954107a9d314c8d87f65f741804ca3f9ca94432e)
2002-05-13 01:55:04 +00:00
Tim Potter
5e723ce3c0 Added commands for startpageprinter, endpageprinter, setjob and getjob.
(This used to be commit 3da89aa8e45d08444bfcddb145264bfcd6f6d768)
2002-05-08 05:50:12 +00:00
Tim Potter
1359433ad8 Added setjob() command.
(This used to be commit 02c63de9e58f9806e58d3862391e05e9b9cdb8fc)
2002-05-08 04:26:22 +00:00
Tim Potter
8e917f27f2 Changed some error returns to return a werror tuple (status code and text
message) instead of just the status code.
(This used to be commit 39f58333fa84dc05cac8d13cabb1f203c5cf2c62)
2002-05-08 04:22:17 +00:00
Tim Potter
646183a78d Remove unused variable.
#ifdef out code for new (uncommitted) version of make_sec_desc()
(This used to be commit 07d11f5e0938c0e4f895391f6c8e2501069a0ef7)
2002-05-08 04:19:52 +00:00
Tim Potter
cd929ae6ce Added enumjobs command.
(This used to be commit bc9dd9b45866d269f576a640286a578da921c3fb)
2002-05-07 07:06:10 +00:00
Tim Potter
2b34442922 rpcstr_pull() src_len fix.
(This used to be commit 7da054d814d16deeea954e2559fdeb97dc323bbb)
2002-05-07 07:00:14 +00:00
Tim Potter
202341dbce Allow lookup_sids() and lookup_names() to take either a list of strings or
just a single string.
(This used to be commit 775549b70e1d2770619c2fe1ed39418a8788dbfe)
2002-05-06 04:53:44 +00:00
Tim Potter
0a01e23e2b Removed unused arg to deleteform.
(This used to be commit 5071fd8fe0ad219f813b490a78c01bb249a3cad6)
2002-05-06 04:52:45 +00:00
Tim Potter
fe816061c1 Re-order args for enumprinterdrivers function.
(This used to be commit 5f9f32021300d47dcc068192428ee48b8aa246ea)
2002-05-03 06:21:59 +00:00
Tim Potter
aa69c1ee80 Some examples using the spoolss python module.
(This used to be commit 68b952561429e1d08a974e633bb9c2870c819c69)
2002-05-02 05:23:38 +00:00
Tim Potter
e8e866867e Got setprinter level 3 working!
Replaced some DEBUG's with PyErr_SetString() calls.
(This used to be commit 0f464fc79118161a97f45f428e4da1069a0be23d)
2002-05-01 04:25:46 +00:00
Tim Potter
451b5feeb7 make proto
(This used to be commit 99dee7b1018f9abc5374bcf877fea1a5cbde6cae)
2002-05-01 04:24:01 +00:00
Tim Potter
77922d18a8 Implemented py_to_PRINTER_INFO_3() helper function.
(This used to be commit d125f9f7dff357bf9eeffc430b5876080f3debeb)
2002-05-01 04:22:20 +00:00
Tim Potter
f530f9c25d Implemented routines to convert from a Python dictionary to a SEC_DESC
structure.

Cleaned up debugging stuff.
(This used to be commit f3f4f0d3978f90c589894234bbcc63728940a246)
2002-05-01 04:19:22 +00:00
Tim Potter
5c261ce93d Return exception text if getprinter level not [0..3]
(This used to be commit c02a7a71d6ddae711c84094e410d1117efc031f0)
2002-04-20 07:17:36 +00:00
Tim Potter
b0fbd72b41 Started working on setprinter code.
(This used to be commit 38d2b1794a0942ac4c2787f06bc5e546508c2515)
2002-04-18 03:35:05 +00:00
Tim Potter
eaf7e2b374 make proto
(This used to be commit a721843197d39c0edc6c464214123be3300d0b91)
2002-04-18 03:24:02 +00:00
Tim Potter
37e4471dea Stubs for connect, domain, user, group and alias policy objects.
Wrote samr connect fn.
(This used to be commit f2155aa3f4608b14777092002c39358b816dbea5)
2002-04-15 23:33:09 +00:00
Tim Potter
b84cce809b Skeleton for SAMR module.
(This used to be commit 70bd1a0f94412236bf6603f16947336cb75c6415)
2002-04-15 07:29:47 +00:00