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

22 Commits

Author SHA1 Message Date
b1037bffcf New arguments to cli_spoolss_enum_printers()
(This used to be commit 55f891016c)
2002-08-27 00:41:06 +00:00
246ec5ad07 Another compile fix.
(This used to be commit ef5c9698b0)
2002-07-11 23:08:51 +00:00
6aad72916a Raise a ValueError if server names aren't given in UNC format.
(This used to be commit f5a1a3190d)
2002-05-28 02:33:11 +00:00
e99a265bad Allow None to be used as a valid credential for functions that take a
credential as a parameter.
(This used to be commit 166aee6cc2)
2002-05-28 02:09:54 +00:00
fdf42114cd Use new version of open_pipe_creds() function.
Don't attempt to free client state returned by cli_full_connection()

Fix memory leaks on error.

Allow setprinter level 1 - doesn't work though.

Extended interface to enumprinters().  The name value passed in the RPC
request can be different from the server name in which case lots of weird
and wonderful information is returned.  Defaults to the server name.
(This used to be commit c75bbda102)
2002-05-27 06:38:36 +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
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
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
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
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
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
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 39f58333fa)
2002-05-08 04:22:17 +00:00
e8e866867e Got setprinter level 3 working!
Replaced some DEBUG's with PyErr_SetString() calls.
(This used to be commit 0f464fc791)
2002-05-01 04:25:46 +00:00
5c261ce93d Return exception text if getprinter level not [0..3]
(This used to be commit c02a7a71d6)
2002-04-20 07:17:36 +00:00
b0fbd72b41 Started working on setprinter code.
(This used to be commit 38d2b1794a)
2002-04-18 03:35:05 +00:00
9aabbc564f Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object()
(This used to be commit 4bf6a9830a)
2002-04-14 23:42:54 +00:00
f6da697708 Call PyErr_SetString instead of fprintf to stderr.
Don't clean up talloc and cli_state on close printer.  They will be
destroyed in the handle dealloc function.
(This used to be commit 4114fe5996)
2002-04-14 23:36:01 +00:00
af96550f17 Removed unused label.
(This used to be commit e0a209bf29)
2002-04-05 05:49:33 +00:00
8735af51e2 Throw a spoolss.werror exception when the rpc client routines return
errors.

Move to new system of converting between structures and python
dictionaries.  Lots of stuff moved to py_spoolss_printers_conv.c

Setprinter level 2 kind of works now.
(This used to be commit abe39ebcc1)
2002-04-05 04:53:20 +00:00
230e36ccde Aborted experiment to avoid namespace pollution and prototype hell and
moved to 'make proto' based solution.
(This used to be commit 1e48f872a4)
2002-03-28 04:14:43 +00:00
e9ad51af1d Moved general printer related calls here.
(This used to be commit eb8cd68bc9)
2002-03-27 05:25:13 +00:00