deb-python-pyldap/Modules
Xelnor 770611a056 Add flag to restore legacy encoding rules (See #1).
With this commit, all ldap connections accept a new parameter,
``bytes_mode``.

When set to ``True``, this flag emulates the old Python 2 behavior,
where all fields are bytes - including those declared as UTF-8 by the RFC (DN,
RDN, attribute names).

If this flag is set to ``False``, the code works with text (unicode) for all
text fields (everything except attribute values).

If no value is set under Python 2, the code will raise a BytesWarning
and proceed with the flag set to ``True``, for backwards compatibility.
Under Python 3, the value can only be set to ``False``.

For safety and ease of upgrade, the code checks that all provided
arguments are of the expected type (unicode with ``bytes_mode=False``,
bytes with ``bytes_mode=True``).
2015-07-25 18:04:38 +02:00
..
.cvsignore Ignore editor backup files 2002-06-30 21:09:47 +00:00
LDAPObject.c Use PyInt on Python 2.x 2015-07-15 14:33:02 +02:00
LDAPObject.h Refer to new project home-page 2009-04-17 12:19:09 +00:00
berval.c [Py3] Always use *bytes* for values. 2015-07-15 14:04:14 +02:00
berval.h [Py3] Always use *bytes* for values. 2015-07-15 14:04:14 +02:00
common.c Refer to new project home-page 2009-04-17 12:19:09 +00:00
common.h Use PyInt on Python 2.x 2015-07-15 14:33:02 +02:00
constants.c Use PyInt on Python 2.x 2015-07-15 14:33:02 +02:00
constants.h Refer to new project home-page 2009-04-17 12:19:09 +00:00
errors.c [Py3] Fix C extension: use Unicode/Long. 2015-07-15 14:04:13 +02:00
errors.h Refer to new project home-page 2009-04-17 12:19:09 +00:00
functions.c l_ldap_str2dn should return unicode. 2015-07-15 14:06:06 +02:00
functions.h Refer to new project home-page 2009-04-17 12:19:09 +00:00
ldapcontrol.c Python 3 compatibility after rebase 2015-07-15 14:18:15 +02:00
ldapcontrol.h Changed internal API List_to_LDAPControls() to LDAPControls_from_object() 2009-08-04 05:39:10 +00:00
ldapmodule.c Cleaner module initialisation. 2015-07-15 14:05:23 +02:00
message.c Add flag to restore legacy encoding rules (See #1). 2015-07-25 18:04:38 +02:00
message.h Patches by Rich for LDAPv3 ext.op. and ext. controls in intermediate results 2011-02-21 21:04:00 +00:00
options.c Use PyInt on Python 2.x 2015-07-15 14:33:02 +02:00
options.h Refer to new project home-page 2009-04-17 12:19:09 +00:00
schema.c Use PyInt on Python 2.x 2015-07-15 14:33:02 +02:00
schema.h Refer to new project home-page 2009-04-17 12:19:09 +00:00
version.c [Py3] Fix C extension: use Unicode/Long. 2015-07-15 14:04:13 +02:00
version.h Refer to new project home-page 2009-04-17 12:19:09 +00:00