freeipa/ipalib/plugins
Petr Viktorin 28b0bfaefe dns plugin: Fix zone normalization under Python 3
In Python 3, str.encode('ascii') converts to bytes, and str()
(nicknamed unicode() in IPA) returns the string representation
of an object, which is b'...' for bytes.

So, unicode('...'.encode('ascii')) results in "b'...'".

Change the code to only call encode() for the error.

Part of the work for https://fedorahosted.org/freeipa/ticket/4985

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-04-28 16:22:07 +02:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
aci.py Pylint: remove unnecessary-semicolon 2016-03-22 10:20:51 +01:00
automember.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
automount.py differentiate between limit types when LDAP search exceeds configured limits 2016-04-13 17:52:22 +02:00
baseldap.py specify type of exceeded limit when warning about truncated search results 2016-04-13 17:52:22 +02:00
baseuser.py Do not do extra search for ipasshpubkey to generate fingerprints 2016-04-26 13:37:23 +02:00
batch.py pylint: supress false positive no-member errors 2016-03-02 14:57:36 +01:00
caacl.py caacl: correctly handle full user principal name 2016-04-20 18:07:19 +02:00
cert.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
certprofile.py Remove unused imports 2015-12-23 07:59:22 +01:00
config.py Limit max username length to 255 in config-mod 2016-04-15 13:24:34 +02:00
delegation.py Remove unused imports 2015-12-23 07:59:22 +01:00
dns.py dns plugin: Fix zone normalization under Python 3 2016-04-28 16:22:07 +02:00
domainlevel.py Remove unused imports 2015-12-23 07:59:22 +01:00
group.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
hbacrule.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
hbacsvc.py Convert HBAC Service default permissions to managed 2014-06-24 13:53:40 +02:00
hbacsvcgroup.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
hbactest.py pylint: remove bare except 2016-03-22 10:20:51 +01:00
host.py Do not do extra search for ipasshpubkey to generate fingerprints 2016-04-26 13:37:23 +02:00
hostgroup.py aci: add IPA servers host group 'ipaservers' 2015-12-07 08:13:23 +01:00
idrange.py Alias "unicode" to "str" under Python 3 2015-09-17 11:08:43 +02:00
idviews.py Do not do extra search for ipasshpubkey to generate fingerprints 2016-04-26 13:37:23 +02:00
internal.py Add 'skip overlap check' checkbox into add zone dialog 2016-04-22 10:11:48 +02:00
krbtpolicy.py Make 'permission' the default bind type for managed permissions 2014-06-11 13:21:29 +02:00
migration.py logger: Use warning instead of warn 2016-01-18 17:49:54 +01:00
misc.py Remove unused imports 2015-12-23 07:59:22 +01:00
netgroup.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
otpconfig.py Fix TOTP Synchronization Window label 2015-02-17 08:26:42 +01:00
otptoken_yubikey.py Alias "unicode" to "str" under Python 3 2015-09-17 11:08:43 +02:00
otptoken.py otptoken-add: improve the robustness of QR code printing 2016-03-24 14:35:19 +01:00
passwd.py logger: Use warning instead of warn 2016-01-18 17:49:54 +01:00
permission.py logger: Use warning instead of warn 2016-01-18 17:49:54 +01:00
ping.py Remove unused imports 2015-12-23 07:59:22 +01:00
pkinit.py Remove unused imports 2015-12-23 07:59:22 +01:00
privilege.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
pwpolicy.py Use explicit truncating division 2016-01-20 11:59:21 +01:00
radiusproxy.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
realmdomains.py Fix minor typos 2015-12-07 12:07:47 +01:00
role.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
rpcclient.py Switch client to JSON-RPC 2013-11-26 16:59:59 +01:00
selfservice.py Remove unused imports 2015-12-23 07:59:22 +01:00
selinuxusermap.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
server.py pylint: supress false positive no-member errors 2016-03-02 14:57:36 +01:00
service.py ipalib: Fix user certificate docstrings 2016-03-07 12:21:12 +01:00
servicedelegation.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
session.py do not import memcache on client 2015-07-16 11:23:40 +02:00
stageuser.py Do not do extra search for ipasshpubkey to generate fingerprints 2016-04-26 13:37:23 +02:00
sudocmd.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
sudocmdgroup.py sudo: Fix a typo in the --help output of sudocmdgroup 2016-03-18 12:38:42 +01:00
sudorule.py Alias "unicode" to "str" under Python 3 2015-09-17 11:08:43 +02:00
topology.py Remove unused imports 2015-12-23 07:59:22 +01:00
trust.py Pylint: import max one module per line 2016-03-22 10:20:51 +01:00
user.py Do not do extra search for ipasshpubkey to generate fingerprints 2016-04-26 13:37:23 +02:00
vault.py make lint: use config file and plugin for pylint 2016-02-11 11:06:39 +01:00
virtual.py Remove unused imports 2015-12-23 07:59:22 +01:00