Commits

George Notaras  committed 142c6fa

Cleaned-up commented code.

  • Participants
  • Parent commits 70feeeb

Comments (0)

Files changed (3)

File src/powerdns_manager/admin.py

     verbose_name_plural = 'zones'
     save_on_top = True
     
-#    inlines = [
-#        # RR
-#        SoaRecordInline,
-#        NsRecordInline,
-#        MxRecordInline,
-#        ARecordInline,
-#        AaaaRecordInline,
-#        CnameRecordInline,
-#        PtrRecordInline,
-#        TxtRecordInline,
-#        SrvRecordInline,
-#        DsRecordInline,
-#        CertRecordInline,
-#        HinfoRecordInline,
-#        LocRecordInline,
-#        SpfRecordInline,
-#        SshfpRecordInline,
-#        RpRecordInline,
-#        NaptrRecordInline,
-#        AfsdbRecordInline,
-#        DnskeyRecordInline,
-#        KeyRecordInline,
-#        NsecRecordInline,
-#        RrsigRecordInline,
-#        # Other
-#        DomainMetadataInline,
-#        CryptoKeyInline,
-#    ]
-    
     #
     # Build the ``inlines`` list. Only inlines for enabled RR types are included.
     # 

File src/powerdns_manager/models.py

     RECORD_TYPE_CHOICES = []
     for enabled_rr_type in settings.PDNS_ENABLED_RR_TYPES:
         RECORD_TYPE_CHOICES.append( (enabled_rr_type, enabled_rr_type) )
-#    RECORD_TYPE_CHOICES = (
-#        ('A', 'A'),
-#        ('AAAA', 'AAAA'),
-#        ('AFSDB', 'AFSDB'),
-#        ('CERT', 'CERT'),
-#        ('CNAME', 'CNAME'),
-#        ('DNSKEY', 'DNSKEY'),
-#        ('DS', 'DS'),
-#        ('HINFO', 'HINFO'),
-#        ('KEY', 'KEY'),
-#        ('LOC', 'LOC'),
-#        ('MX', 'MX'),
-#        ('NAPTR', 'NAPTR'),
-#        ('NS', 'NS'),
-#        ('NSEC', 'NSEC'),
-#        ('PTR', 'PTR'),
-#        ('RP', 'RP'),
-#        ('RRSIG', 'RRSIG'),
-#        ('SOA', 'SOA'),
-#        ('SPF', 'SPF'),
-#        ('SSHFP', 'SSHFP'),
-#        ('SRV', 'SRV'),
-#        ('TXT', 'TXT'),
-#    )
+
     domain = models.ForeignKey('powerdns_manager.Domain', related_name='%(app_label)s_%(class)s_domain', verbose_name=_('domain'), help_text=_("""Select the domain this record belongs to."""))
     name = models.CharField(max_length=255, null=True, db_index=True, verbose_name=_('name'), help_text="""Actual name of a record. Must not end in a '.' and be fully qualified - it is not relative to the name of the domain!  For example: www.test.com (no trailing dot)""")
     # See section 8.5 about why the type field allows NULL. (PowerDNS 3.2 and above)

File src/powerdns_manager/settings.py

 # Declares the server a SLAVE -- Will be used internally
 PDNS_IS_SLAVE = getattr(settings, 'PDNS_IS_SLAVE', False)
 
-# __ALL__ is special keyword that enables all record types
 _DEFAULT_PDNS_ENABLED_RR_TYPES = [
     'SOA',
     'NS',