Commits

George Notaras committed 83b7203

Set signals for ``auth`` and ``ordername`` completion. Actual functionality still missing.

Comments (0)

Files changed (2)

src/powerdns_manager/models.py

 signals.pre_save.connect(signal_cb.update_rr_change_date, sender=Record)
 # Set missing TTL information
 signals.pre_save.connect(signal_cb.set_missing_rr_ttl, sender=Record)
+# Set ``auth`` field
+signals.pre_save.connect(signal_cb.set_rr_authoritative, sender=Record)
+# Set ``ordername`` field
+signals.pre_save.connect(signal_cb.set_rr_ordername, sender=Record)
 
 
 

src/powerdns_manager/signal_cb.py

     # TODO: consider checking the minimum TTL from the SOA record.
 
 
-def set_rr_authoritative_field(sender, **kwargs):
+def set_rr_authoritative(sender, **kwargs):
     """This callback fills the ``auth`` field of the Record model.
     
     TODO: list the rules to fill the field.
     instance = kwargs['instance']   # powerdns_manager.Record instance
 
 
-def set_rr_ordername_field(sender, **kwargs):
+def set_rr_ordername(sender, **kwargs):
     """This callback fills the ``ordername`` field of the Record model.
     
     TODO: list the rules to fill the field.