Deryck Hodge
aee979faaa
r15385: Some work to bring the python code up to date with the
...
rpc client rewrite.
(This used to be commit fd5bcecceb518d0683f400a61e11ce37f3d52d42)
2007-10-10 11:16:38 -05:00
Jeremy Allison
5b32737374
r10802: Janitor for tpot - remember to keep 3.0 in sync.
...
Jeremy.
(This used to be commit 4b7a60e95e8f972df05d162769f0c441a4442e56)
2007-10-10 11:04:54 -05:00
Gerald Carter
ecafd3754f
r8654: merging cli_spoolss_XX() updates from trunk
...
(This used to be commit cd961e50a3029898868d21263ccacb7d5f1f07b9)
2007-10-10 11:00:14 -05:00
Lars Müller
39605e52aa
r7960: Replace unknown SMB_XSTRDUP by known SMB_STRDUP macro.
...
I still don't know why the compile doesn't fail.
(This used to be commit 8cfa6873c2b57eb94b43a5aded38be7958922210)
2007-10-10 10:58:04 -05:00
Gerald Carter
3c181a88c6
r6678: fix python python after talloc() shakeup
...
(This used to be commit f629bffb1a6b8c2ea54fcfe33865b43559abbc77)
2007-10-10 10:56:50 -05:00
Tim Potter
873e090be3
Merge of compiler warning fixups.
...
(This used to be commit 0308a0a11265050f53fc7e8e03f8e17b04adb45d)
2003-03-20 01:05:22 +00:00
Tim Potter
06c665365e
Merge of some commentary for getprinter info levels supported by win2k+
...
(This used to be commit 3026a5ef152e1856ac127abe72855371611d5bf3)
2003-03-13 06:51:26 +00:00
Tim Potter
ba41aa6863
Sync up compiler warning fixes.
...
(This used to be commit 225182a3a36c72b10643c9568e5cc1f80c0173f1)
2003-01-15 22:18:33 +00:00
Jeremy Allison
98ac4503ac
Finish adding strings to all talloc_init() calls.
...
Jeremy.
(This used to be commit aa8439a49ec4b9f433745fefa1e769e45398f4df)
2002-12-23 23:54:10 +00:00
Tim Potter
ea6d5bc48b
Sync with HEAD.
...
(This used to be commit 0310e539bb41f569c7ae77b2d131e966adefa27b)
2002-11-04 20:33:16 +00:00
Tim Potter
8a36292471
Fix crash bugs in getprinter info level code (yay unit tests).
...
Let the cli_spoolss function return invalid info level error rather
than checking for it ourselves.
(This used to be commit fc5e186821abc429ea8314d0785b76cbe1ec5f74)
2002-09-09 04:43:38 +00:00
Tim Potter
b1037bffcf
New arguments to cli_spoolss_enum_printers()
...
(This used to be commit 55f891016c005c1552f1c1d95dd067bbf9de8869)
2002-08-27 00:41:06 +00:00
Tim Potter
246ec5ad07
Another compile fix.
...
(This used to be commit ef5c9698b06c5df99ec07ee781cc54d2e348ba8a)
2002-07-11 23:08:51 +00:00
Tim Potter
6aad72916a
Raise a ValueError if server names aren't given in UNC format.
...
(This used to be commit f5a1a3190dc0d4ecdf55b870633a83ee125b816e)
2002-05-28 02:33:11 +00:00
Tim Potter
e99a265bad
Allow None to be used as a valid credential for functions that take a
...
credential as a parameter.
(This used to be commit 166aee6cc2abb5f6e91ebf3d4ec37454034b8dcd)
2002-05-28 02:09:54 +00:00
Tim Potter
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 c75bbda1021838074ff0f2e54edd68c69acccee0)
2002-05-27 06:38:36 +00:00
Tim Potter
4f783edcf3
Use get_level_value() utility fn.
...
Cleaned up some local variable naming.
(This used to be commit d4c7a85c2b5c45f1cc3273230d80a1d5923cd848)
2002-05-17 02:39:07 +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
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
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
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
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
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
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
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
9aabbc564f
Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object()
...
(This used to be commit 4bf6a9830acde47994975dffd578454ebb75e45a)
2002-04-14 23:42:54 +00:00
Tim Potter
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 4114fe5996f84dfd14855ffdf666e065446607b4)
2002-04-14 23:36:01 +00:00
Tim Potter
af96550f17
Removed unused label.
...
(This used to be commit e0a209bf291553ec85dbd56cffab2a97440cea28)
2002-04-05 05:49:33 +00:00
Tim Potter
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 abe39ebcc125362125f0f900102b0f8d6011324b)
2002-04-05 04:53:20 +00:00
Tim Potter
230e36ccde
Aborted experiment to avoid namespace pollution and prototype hell and
...
moved to 'make proto' based solution.
(This used to be commit 1e48f872a494228e82fd32c789b3dcea6b014211)
2002-03-28 04:14:43 +00:00
Tim Potter
e9ad51af1d
Moved general printer related calls here.
...
(This used to be commit eb8cd68bc9c7c7c52a066479712c93e62f0ba5d5)
2002-03-27 05:25:13 +00:00