summaryrefslogtreecommitdiffstats
path: root/source3/python
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in docstring.Tim Potter2002-11-191-1/+1
| | | | (This used to be commit 9f9347bc03448f8b93d536f9cd2df8fb496a4c22)
* Rename unpack_* functions to be consistentMartin Pool2002-11-121-15/+16
| | | | | | | Decode CP850 strings when unpacking Add variable giving default encoding name (This used to be commit 8cbaea2afa6faca80eced70d625359165afaa10c)
* Rename pytdbpack_unpack -> pytdbunpackMartin Pool2002-11-121-7/+7
| | | | (This used to be commit e62baf3a76e0e4f642e542812868db614632de00)
* Just reorder functions to put related ones togetherMartin Pool2002-11-121-40/+38
| | | | (This used to be commit 7863c948b73785e49d04227e87d8b4b47fd61f58)
* Remove dead code for packing buffers which has now been reimplemented.Martin Pool2002-11-121-94/+0
| | | | (This used to be commit 001779dffd18e1f6a83496c94ead185d4bb42204)
* Remove dead code for packing buffers which has now been reimplemented.Martin Pool2002-11-121-36/+0
| | | | (This used to be commit 62ca27d140d55cbb271b97624023540ae7c18882)
* Remove non-integer Pointer values, which are no longer supported.Martin Pool2002-11-121-2/+0
| | | | (This used to be commit 4a18526257ec4582679efa7a21d0b31ad07992fb)
* Rewrite all the packing stuff so that it converts 'f' strings to CP850Martin Pool2002-11-091-174/+274
| | | | | | | | | on encoding. (Tough luck if your Samba codepage is not 850.) It's much cleaner and possibly more efficient now too: just build one big list of strings, then zip it up at the end. Still need to do this for unpacking. (This used to be commit 2480d385db0527b71cc5cd23c4fab4655df84485)
* Added enumprinterkey function.Tim Potter2002-11-063-0/+72
| | | | | Stub for deleteprinterkey. (This used to be commit 64e04380f7ad9b471a681638dfde93e0c65f9fa3)
* Moved function to parse a list of unicode strings into util file.Tim Potter2002-11-062-26/+26
| | | | | | It's now used in parsing printer driver structures and the response from the enumprinterkey rpc. (This used to be commit acecee6f2bb92c4992078f4fe2dfae4414f43482)
* pytdbpack_unpack: Clean up, and correct the handling of '$'.Martin Pool2002-11-061-20/+18
| | | | (This used to be commit dd73568f97ad51c93f096001058fd31fa14e88ae)
* Add another test case for repeated-unpack ('$')Martin Pool2002-11-061-0/+9
| | | | (This used to be commit 2a492c4854d4c6469d8c7d21aa187fef6303b641)
* pytdbpack_pack_data: Allow first argument to be any kind of Number,Martin Pool2002-11-051-3/+9
| | | | | not just an Integer. Coerce appropriately. (This used to be commit 248067931a2a8eeee86ea343bddf96d2bd727dbf)
* pytdbpack_pack_data: If the first argument to a 'B' code is not anMartin Pool2002-11-051-1/+3
| | | | | | Integer, raise an error rather than just returning Null, which breaks the interpreter. (This used to be commit db67c5f7e53b231fe217a29a15888e8895ce2229)
* pytdbpack_pack_data: Oops, since B is separately encoded as buffer andMartin Pool2002-11-051-5/+8
| | | | | | length we need separate counters traversing the format and value sequences to pack them. (This used to be commit 49a0ba46e6693bb819440d4ab40045afc4a7ae17)
* Update test cases.Martin Pool2002-11-051-28/+32
| | | | (This used to be commit db2c393dd488dad2ce95f3b3cf0297d5b0159ae7)
* pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form listMartin Pool2002-11-051-21/+45
| | | | | by appending, rather than preallocating. (This used to be commit d72b144e03b9a9cb3d676527ddc5b2d0e1ef42f8)
* Add more test cases that now work.Martin Pool2002-11-041-1/+2
| | | | (This used to be commit 7827536c15ac27ebcc4e9c342be6e203248195f6)
* pytdbpack_pack_data: Allow 'd' and 'w' formats to take either IntegerMartin Pool2002-11-041-2/+20
| | | | | or Long arguments. (This used to be commit 2085595565b99295d04a6663aad1ccac5bc1b657)
* Make sure uint32 unpacking is unsigned, and generates a Python long soMartin Pool2002-11-041-10/+10
| | | | | that it can represent all the unsigned values (This used to be commit 2593e1588355643bb76a9b8869573fe38fd3bc3e)
* Re-add some tests which do work with both implementationsMartin Pool2002-11-041-6/+6
| | | | (This used to be commit a9c2817c79f675b82ace4e21df7fa123f9a995c3)
* Comment out test cases where the old and new parser are different.Martin Pool2002-11-041-60/+71
| | | | (This used to be commit 6be885da2ca0ee41db86c46625301b51858061af)
* pytdbpack_calc_reqd_len: Correct calculation of packed length ofMartin Pool2002-11-041-5/+8
| | | | | string types (This used to be commit 30525aee33237f5b17e1067a96d09b7ee0a516a6)
* Change to representing buffers ('B') as (LEN, STRING) in Python,Martin Pool2002-11-041-130/+112
| | | | | | | rather than as just a string. Makes the code more messy, but needed for compatibility with existing PSA Python code which seems to be too knotty to separate out. (This used to be commit 20d88a7d1e2a6d2daca29c5ffff3781197a97b57)
* test_pack_extra: Add additional cases.Martin Pool2002-11-041-7/+12
| | | | | test_pack_failures: Remove cases for which old code is too lax. (This used to be commit 631945a03a3bf4982177bc22ebccf096b2bb5b6c)
* test_pack_extra: Better way of testing packing with extra values.Martin Pool2002-11-041-3/+3
| | | | (This used to be commit 12c3bb99a5f870b01ef389ddad1073fc92d2362c)
* pytdbpack_calc_reqd_len: It's no longer an error to supply more dataMartin Pool2002-11-041-8/+2
| | | | | values than are consumed. (This used to be commit 0c1cfe559877d51090409d67f983a82bbbbaa7e2)
* DocMartin Pool2002-11-041-2/+5
| | | | (This used to be commit 21e41866425c6f8bf04b08b3edd5bf70caf56e32)
* test_pack_extra: The old code does not complain when there are tooMartin Pool2002-11-041-1/+15
| | | | | | many data values for the format. Test that the new code behaves the same way. (This used to be commit b0143e77d64f6af977395cf39e50f35e46486157)
* test_pack_failures: The old code does not complain when there are tooMartin Pool2002-11-041-6/+14
| | | | | | | many data values for the format, so we don't test that here. test_large: New test case for packing/unpack a thousand values. (This used to be commit 04cad599f40faf234b40090806bcd1ac0473470f)
* pytdbpack_calc_reqd_len: Make exception be thrown correctly when aMartin Pool2002-11-041-2/+5
| | | | | | | | | non-string is used with a string format code. (It was being generated but not thrown.) Also call checked versions of some functions rather than FAST_* versions. (This used to be commit 1b681bd524764deaef657ef41c39d037ac7dcc7b)
* test_pack_failures: The old and new code is not exactly the same aboutMartin Pool2002-11-041-33/+37
| | | | | | error detection, so now we don't care what exact error is returned as long as we get something. (This used to be commit 5ade138bb815d3184fa57ff9cb548f78405059c5)
* test_pack: Coercing a dictionary to a sequence as it is packed is notMartin Pool2002-11-041-4/+0
| | | | | compatible with the old code, and so it is removed from the test case. (This used to be commit ed0e4a670d4d62b63afdaf7d9f13e39b98cdf1b2)
* Fix boog in argument list for nt_create_andx.Tim Potter2002-10-301-1/+1
| | | | (This used to be commit 6945e89e2d10743635f01420c83d405a2d4cb356)
* Added close and unlink functions.Tim Potter2002-10-291-0/+44
| | | | (This used to be commit 3a7f8a568e9d1608c2a065e0b98488e2d068911c)
* Fixed bug in session setup kwlist.Tim Potter2002-10-211-2/+25
| | | | | | Added some basic error handling. Just throw a RuntimeError exception on error. (This used to be commit 06caeed588f702814be76a2b2aa7ed43504adef5)
* Test both new samba.tdbpack and oldtdbutil pack/unpack routines.Martin Pool2002-10-211-29/+37
| | | | | | This makes the test suite fail because at the moment they are in fact not behaving the same way. (This used to be commit 44dd7746ede7f7f9efcf7dabcd351b1d800e535c)
* Import old pure Python version of tdbpack/unpack, so that we can doMartin Pool2002-10-211-0/+144
| | | | | | | | compatibility testing against the shiny new C version. This version is slightly modified to not call codepage conversion routines, and renamed tdbutil->oldtdbutil. (This used to be commit 2dc4373727f73a46cd6135413e50917fb7fa538b)
* The libsmb module uses py_ntsec.oTim Potter2002-10-211-1/+2
| | | | (This used to be commit e27d3d20e3c51fc04f37d92c24f38f91b2d1e1e4)
* Fixed up tconx function. Implemented nt_create_andx, query_secdescTim Potter2002-10-211-12/+121
| | | | | and set_secdesc functions. (This used to be commit 3fd568ef5c984f089e7799d9ff55395330716641)
* Whoops - this should be in py_smb.cTim Potter2002-10-211-52/+0
| | | | (This used to be commit b740c7e5050b18bc06865451bed3daf3ae09c609)
* Give better error messages for TypeError, which will arise if e.g. youMartin Pool2002-10-211-10/+24
| | | | | try to pack an Int using a string tdbpack format. (This used to be commit 6139ab3cbca3fc2969d1e578b38394b1f6aeb9c3)
* More cleanups of validation functions.Tim Potter2002-10-212-19/+66
| | | | (This used to be commit a4790ba42cc6ee4086dafbc64b1dba790a6c3583)
* Zero some more return values.Tim Potter2002-10-211-1/+2
| | | | (This used to be commit 7f45bad319ace07a5bfc21465a0db919131dd608)
* level should be a uint32 in enum_ports function.Tim Potter2002-10-211-1/+1
| | | | (This used to be commit 121db5b6821df9c6ec05adb2d35c2dde930736f2)
* Stricter validation in python->C conversion functions.Tim Potter2002-10-211-9/+16
| | | | (This used to be commit 672c07e2432299e3b1015af524dc5c124f61f904)
* Fixed DRIVER_INFO_3 conversion function to check for dependent_filesTim Potter2002-10-211-3/+29
| | | | | key. (This used to be commit 35413be0ac39ce52f009f7750f23b41728d8a35c)
* Added stubs for query/set security descriptors on files. Not even close toTim Potter2002-10-201-0/+52
| | | | | working yet. (This used to be commit b7ef2e8b41bd6a7225b9f21c65c42b8ef0f82a32)
* Add extra parm to cli_full_connection call. Tim, you should probably look ↵Jim McDonough2002-10-181-1/+1
| | | | | | at this. (This used to be commit a9f632ed5d3d033849c25efac419b21e830c5069)
* make protoTim Potter2002-10-171-1/+1
| | | | (This used to be commit 86c884c3a129d12dc77332c38484bef78c66440e)