summaryrefslogtreecommitdiff
path: root/source3/python/py_spoolss_printers.c
AgeCommit message (Collapse)AuthorFilesLines
2002-12-23Finish adding strings to all talloc_init() calls.Jeremy Allison1-3/+3
Jeremy. (This used to be commit aa8439a49ec4b9f433745fefa1e769e45398f4df)
2002-11-04Sync with HEAD.Tim Potter1-3/+3
(This used to be commit 0310e539bb41f569c7ae77b2d131e966adefa27b)
2002-09-09Fix crash bugs in getprinter info level code (yay unit tests).Tim Potter1-8/+3
Let the cli_spoolss function return invalid info level error rather than checking for it ourselves. (This used to be commit fc5e186821abc429ea8314d0785b76cbe1ec5f74)
2002-08-27New arguments to cli_spoolss_enum_printers()Tim Potter1-3/+3
(This used to be commit 55f891016c005c1552f1c1d95dd067bbf9de8869)
2002-07-11Another compile fix.Tim Potter1-2/+2
(This used to be commit ef5c9698b06c5df99ec07ee781cc54d2e348ba8a)
2002-05-28Raise a ValueError if server names aren't given in UNC format.Tim Potter1-3/+7
(This used to be commit f5a1a3190dc0d4ecdf55b870633a83ee125b816e)
2002-05-28Allow None to be used as a valid credential for functions that take aTim Potter1-3/+15
credential as a parameter. (This used to be commit 166aee6cc2abb5f6e91ebf3d4ec37454034b8dcd)
2002-05-27Use new version of open_pipe_creds() function.Tim Potter1-23/+56
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-17Use get_level_value() utility fn.Tim Potter1-22/+7
Cleaned up some local variable naming. (This used to be commit d4c7a85c2b5c45f1cc3273230d80a1d5923cd848)
2002-05-16Fix memory leaks and return values in error returns for enumprinters().Tim Potter1-29/+48
Return enumerated printers as a hash of hashes instead of a list of hashes. (This used to be commit 1d0fd34d42e286fe7a41ca2d122f6bd7dc958b0a)
2002-05-16More cleanups.Tim Potter1-25/+40
- 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-16Refactored open_pipe_creds() function to remove unused parameter.Tim Potter1-11/+6
(This used to be commit 36ed06cb5078429445f3bbb0f69baa2e0f8356a4)
2002-05-15Renamed functions that are methods of a printer handle object fromTim Potter1-2/+2
spoolss_* to spoolss_hnd_* to make things a bit clearer. (This used to be commit 986d868837350e9b107c147e649f139fd7d881f0)
2002-05-15Fixed a memory leak in enumprinters.Tim Potter1-4/+57
Started addprinterex() - doesn't work yet. (This used to be commit b56bf8f43efbb356ecacf13b96cee7f07386d83d)
2002-05-14Moved PyDict_SetItemString for printer info level structures into conv ↵Tim Potter1-2/+0
functions. (This used to be commit f7fadfdd73d3ba12dbfc7bf18319ce72f79a0dcc)
2002-05-08Changed some error returns to return a werror tuple (status code and textTim Potter1-4/+2
message) instead of just the status code. (This used to be commit 39f58333fa84dc05cac8d13cabb1f203c5cf2c62)
2002-05-01Got setprinter level 3 working!Tim Potter1-9/+23
Replaced some DEBUG's with PyErr_SetString() calls. (This used to be commit 0f464fc79118161a97f45f428e4da1069a0be23d)
2002-04-20Return exception text if getprinter level not [0..3]Tim Potter1-1/+8
(This used to be commit c02a7a71d6ddae711c84094e410d1117efc031f0)
2002-04-18Started working on setprinter code.Tim Potter1-28/+14
(This used to be commit 38d2b1794a0942ac4c2787f06bc5e546508c2515)
2002-04-14Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object()Tim Potter1-1/+1
(This used to be commit 4bf6a9830acde47994975dffd578454ebb75e45a)
2002-04-14Call PyErr_SetString instead of fprintf to stderr.Tim Potter1-7/+5
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-05Removed unused label.Tim Potter1-1/+0
(This used to be commit e0a209bf291553ec85dbd56cffab2a97440cea28)
2002-04-05Throw a spoolss.werror exception when the rpc client routines returnTim Potter1-272/+80
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-03-28Aborted experiment to avoid namespace pollution and prototype hell andTim Potter1-9/+7
moved to 'make proto' based solution. (This used to be commit 1e48f872a494228e82fd32c789b3dcea6b014211)
2002-03-27Moved general printer related calls here.Tim Potter1-0/+558
(This used to be commit eb8cd68bc9c7c7c52a066479712c93e62f0ba5d5)