1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00
Commit Graph

141 Commits

Author SHA1 Message Date
24def691ef Check types of dictionary elements in to_struct()
(This used to be commit 793f1042f1)
2002-05-27 06:33:33 +00:00
f2cbcec5a4 Convert open_pipe_creds() to use new cli_full_connection() interface.
Initialise global_myname in py_samba_init() function.
(This used to be commit e5dcd3c7cc)
2002-05-27 06:32:11 +00:00
bf7ca61cb4 Honour return value of to_struct() when converting to Samba structures.
(This used to be commit 1ef99e7663)
2002-05-27 06:29:58 +00:00
3ec6d94f95 Fixed compiler warning.
(This used to be commit 736eb3c748)
2002-05-27 06:28:45 +00:00
b403e16e09 Fixed dodgy arguments to PyArg_ParseTupleAndKeywords()
(This used to be commit 45562b8603)
2002-05-27 06:28:18 +00:00
82e4fb6fbb Some rearrangement of header files.
(This used to be commit 0b2bd0a229)
2002-05-27 06:23:30 +00:00
6a663f5a2a Compile fix for enum trust dom wrapper.
(This used to be commit 63e2c7c5fe)
2002-05-23 22:53:59 +00:00
4f46de7972 A graphical tdb browser using the gnome-python bindings.
(This used to be commit 08dcfff2a2)
2002-05-23 05:10:51 +00:00
c6d53c2798 Another change to the GPL "abandon hope all who enter here" warning.
(This used to be commit 1d75b548de)
2002-05-23 02:36:53 +00:00
8955286b32 Got gdb and gpl confused. (-:
(This used to be commit 08356ec38a)
2002-05-22 23:31:44 +00:00
dc86e2b710 Added a reminder about programs using the tdb bindings having to be
licensed under the GPL.
(This used to be commit aa3ec7618f)
2002-05-22 00:43:04 +00:00
8a35fba95b A tdb module based on some tips from Mike Noriega. This version supports
locking and tdb traversal using python callbacks.
(This used to be commit f3530fd618)
2002-05-21 07:43:35 +00:00
641d6dc79e Remove level and name fields from dictionary copy in py_to_FORM()
(This used to be commit ac15442579)
2002-05-20 08:09:19 +00:00
03a8391787 py_to_DRIVER_INFO_3: remove level key on copy of dictionary before calling
to_struct().
(This used to be commit 274679d8ce)
2002-05-20 08:07:49 +00:00
be92d4ac55 Decode info level 3 for getprinterdriver.
Error checking for undecoded info levels.
(This used to be commit 841b6cf63c)
2002-05-20 08:05:27 +00:00
1aa06209a1 When converting from a dictionary to a Samba structure, check for any
additional keys that may have been added and return False if so.
(This used to be commit 96ccb2beb1)
2002-05-20 08:04:02 +00:00
d62adde88a Set level key in driver info structures.
(This used to be commit 0caf7610dc)
2002-05-20 02:55:35 +00:00
4f783edcf3 Use get_level_value() utility fn.
Cleaned up some local variable naming.
(This used to be commit d4c7a85c2b)
2002-05-17 02:39:07 +00:00
296583a5e1 Add level field when converting FORM_1 to dict.
More error checking when converting from dict to FORM_1.
(This used to be commit 608b9ab29d)
2002-05-17 02:34:49 +00:00
281ded3f7f addform(), setform():
- call get_level_value() utility function
  - removed unused keyword args
  - clean up handling of name arg to cli call

deleteform():

  - removed unused keyword args
(This used to be commit c9c2aac903)
2002-05-17 02:32:02 +00:00
191a446078 Call get_level_value() utility function.
(This used to be commit 2566dad274)
2002-05-17 02:28:26 +00:00
1ab45841cc Added a utility function to extract the info key from a dictionary.
(This used to be commit 4cafbcb205)
2002-05-17 02:25:37 +00:00
119716f162 to_struct() now returns a boolean which is false if not all the elements of
the structure were present in the dictionary.
(This used to be commit b26d9d7939)
2002-05-17 02:24:06 +00:00
535af3c3fe Return enumerated forms as a hash of hashes instead of a list of hashes.
(This used to be commit 2f86f01b88)
2002-05-16 07:32:55 +00:00
16f78e46bb Removed unused variable.
(This used to be commit 8d2f77ce95)
2002-05-16 05:45:01 +00:00
c2f5c02e28 Renamed 'printer_name' field in python printer info to 'name' to be
more consistent.
(This used to be commit f8c198b748)
2002-05-16 05:25:53 +00:00
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 1d0fd34d42)
2002-05-16 05:24:06 +00:00
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 c469ada3d3)
2002-05-16 05:19:30 +00:00
0227141bd1 Set exception object when enumjobs returns non-zero NT status.
(This used to be commit b1818eb375)
2002-05-16 05:17:43 +00:00
ce89909493 Fix return value for enumprinterdrivers(), getprinterdriverdir().
Set info level key in getprinterdriverdir() return info.
(This used to be commit cb4bfd39eb)
2002-05-16 05:16:06 +00:00
70da1dec97 Shorten some debug messages.
(This used to be commit 179c68bd0d)
2002-05-16 05:13:50 +00:00
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 d35cad359d)
2002-05-16 04:00:31 +00:00
ce03ce2e56 Refactored open_pipe_creds() function to remove unused parameter.
(This used to be commit 36ed06cb50)
2002-05-16 02:24:22 +00:00
ea8c45bbfd Added addjob command.
(This used to be commit e4cc7e2d52)
2002-05-16 02:01:23 +00:00
932b8e9d40 Cleaned up help docstrings.
(This used to be commit a8fcb151f8)
2002-05-16 01:33:38 +00:00
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 986d868837)
2002-05-15 06:22:53 +00:00
c4d0a4c5f8 make proto
(This used to be commit 4fe9f83998)
2002-05-15 06:11:52 +00:00
dfd1953542 Method entry for addprinterex()
(This used to be commit 1ad82cd0c3)
2002-05-15 06:10:45 +00:00
7c0ff78f3e Fixed a memory leak in enumprinters.
Started addprinterex() - doesn't work yet.
(This used to be commit b56bf8f43e)
2002-05-15 06:09:47 +00:00
fb986ce8ae Comment that deleteprinterdataex isn't supported by a samba server.
(This used to be commit c07d583327)
2002-05-15 06:05:00 +00:00
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 e3c27d7d10)
2002-05-15 06:03:09 +00:00
130d8ec7b0 Implement py_to_DRIVER_INFO_3()
(This used to be commit ced14ea913)
2002-05-15 05:59:12 +00:00
8ca814e529 Added lots of new functions to the method tables.
(This used to be commit a8f5951bec)
2002-05-14 07:15:43 +00:00
034a0b46c7 make proto
(This used to be commit 0c52191cc5)
2002-05-14 07:14:15 +00:00
d8b60d56fb Added deleteprinterdata function.
Stub for deleteprinterdataex.
(This used to be commit 14acdbf06d)
2002-05-14 07:13:25 +00:00
60f4e9dccc Fixed bug in enumprinterdrivers.
Added stubs for addprinterdriver and deleteprinterdriver functions.
(This used to be commit ca315ef84f)
2002-05-14 07:11:31 +00:00
ceb338a35c Moved PyDict_SetItemString for printer info level structures into conv functions.
(This used to be commit f7fadfdd73)
2002-05-14 07:09:54 +00:00
2e6939cf0b Added writeprinter command.
(This used to be commit 307788d0b8)
2002-05-14 06:09:59 +00:00
762d52feba Added enumprinterdata.
(This used to be commit 7a15ce7c0c)
2002-05-14 05:01:04 +00:00
520b40e423 General cleanup of compiler warnings etc.
(This used to be commit 18aeadc591)
2002-05-14 02:37:47 +00:00