summaryrefslogtreecommitdiff
path: root/source3/python/py_spoolss_forms.c
AgeCommit message (Collapse)AuthorFilesLines
2003-01-17This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell1-1/+1
calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing. (This used to be commit b9eff31b1433c81fbff733e194914a40f25e3bda)
2002-09-09Pass level keyword down to cli_spoolss_getform()Tim Potter1-1/+1
(This used to be commit 69bb58b92e92113b3ce2c72a3bfa46ed3056c261)
2002-05-27Fixed dodgy arguments to PyArg_ParseTupleAndKeywords()Tim Potter1-1/+1
(This used to be commit 45562b86039ec1b2f6d1cf3e9a5aa57cf87a796a)
2002-05-17addform(), setform():Tim Potter1-26/+44
- 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 c9c2aac9035a11e3fe2d320504097b98a426dd63)
2002-05-16Return enumerated forms as a hash of hashes instead of a list of hashes.Tim Potter1-8/+19
(This used to be commit 2f86f01b88ccaaeee97588f339ebaeae5c4c06e9)
2002-05-16More cleanups.Tim Potter1-4/+5
- 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-15Renamed functions that are methods of a printer handle object fromTim Potter1-5/+5
spoolss_* to spoolss_hnd_* to make things a bit clearer. (This used to be commit 986d868837350e9b107c147e649f139fd7d881f0)
2002-05-06Removed unused arg to deleteform.Tim Potter1-2/+1
(This used to be commit 5071fd8fe0ad219f813b490a78c01bb249a3cad6)
2002-04-09Fixed setform and addform functions.Tim Potter1-21/+17
(This used to be commit ecba275cf75be3152c917329ba16d77bf4490259)
2002-04-05Converted drivers, forms and ports functions to use new conversion routinesTim Potter1-38/+16
and exception throwing. (This used to be commit ed0a6480f75b3eefc52bc3311d8c3816abefcff2)
2002-03-28Aborted experiment to avoid namespace pollution and prototype hell andTim Potter1-7/+7
moved to 'make proto' based solution. (This used to be commit 1e48f872a494228e82fd32c789b3dcea6b014211)
2002-03-27Converted to #include *.c format.Tim Potter1-13/+11
(This used to be commit 992cbfe98b4131f0aef96da3ddeee00d3d4a1fb1)
2002-03-26#include "py_conv.h"Tim Potter1-0/+2
(This used to be commit 2c935bc1eab20fd72f0bd4577c0e2140d6fcc3d3)
2002-03-26Moved form related functions as methods in the policy handle object.Tim Potter1-37/+17
(This used to be commit 7c4bcc48aa9ff3227673522f32170bcefb0b7208)
2002-03-20Initial version.Tim Potter1-0/+283
(This used to be commit d35770d06f7bc396cf32337a4e1104b5fe8a3ca8)