From: Michael <mi...@st...> - 2000-09-08 09:27:46
|
mike wrote: > > tmp = _ldap.MOD_REPLACE, "favoritecolor", "red" Has to be a list of tuples. tmp = [(_ldap.MOD_REPLACE, "favoritecolor", "red")] would be correct. > l.modify_s("cn=mike, ou=People, dc=foo, dc=com",tmp) > SystemError: new style getargs format but argument is not a tuple Your variable tmp seems to be treated as a sequence (the modify list). tmp[0] is not a tuple which raises this Exception. Ciao, Michael. |