From: mike <mi...@tg...> - 2000-09-07 23:08:38
|
My apoligies, the following two questions are pretty simple but I couldn't figure either of them out. First, the .tex files in the Doc/_ldap directory are giving me errors when I try to view them(using latex or tex), is anyone else having this problem? Second, the reason I needed to look at the docs was to see what paramaters are supposed to be supplied to modify_s. I did use vi to look at the raw .tex file and found my answer but it still doesn't seem to be working. Below is a test file that I am using along with the error it generates. Once again my apologies for the simple questions, the error is probably some bad syntax on my part, but I can't tell for sure because I can't read the docs. Thanks again for any help! [Contents of file test.py] #!/usr/bin/env python import _ldap l = _ldap.open("localhost") l.simple_bind_s("","") tmp = _ldap.MOD_REPLACE, "favoritecolor", "red" l.modify_s("cn=mike, ou=People, dc=foo, dc=com",tmp) l.unbind() [Results when I run it] [mike@apache mike]$ ./test.py Traceback (innermost last): File "./test.py", line 8, in ? l.modify_s("cn=mike, ou=People, dc=foo, dc=com",tmp) SystemError: new style getargs format but argument is not a tuple |