from .pdns_app import PpPDNSAppError, PpPDNSApplication
from .pdns_zone import PdnsApiZone
-__version__ = '0.2.2'
+__version__ = '0.2.3'
LOG = logging.getLogger(__name__)
zone = PdnsApiZone.init_from_dict(
data, appname=self.appname, verbose=self.verbose, base_dir=self.base_dir)
zone_list.append(zone)
- if len(zone.name) > len_zone:
- len_zone = len(zone.name)
+ if len(zone.name_unicode) > len_zone:
+ len_zone = len(zone.name_unicode)
if self.verbose > 2:
print("{!r}".format(zone))
tpl = PdnsApiZone.get_list_template()
print(line)
print('-' * len(line))
- for zone in sorted(zone_list, key=lambda x: cmp_to_key(compare_fqdn)(x.name)):
+ for zone in sorted(zone_list, key=lambda x: cmp_to_key(compare_fqdn)(x.name_unicode)):
print(zone.get_line(len_zone))
# =============================================================================