Commit Graph

19 Commits

Author SHA1 Message Date
jeffrey forman f9176387ac update to django-2, python3, and based on an alpine container 2019-02-13 20:17:05 -05:00
Jeffrey Forman 235f0fe174 Simplify ttl and key_name form fields. keys are now required.
fix forms where the widget was being specified but overriden in the view. remove the specification of the widget
2017-04-17 20:18:14 -04:00
Jeffrey Forman 7fdcfab8a0 add support to add CNAME in zone, loosen restrictions on record data input 2016-11-12 07:44:03 -05:00
Jeffrey Forman 2bb8f5d9cb resurrect the ability to add a PTR record on its own, not as part of a pair of forward records 2015-12-26 15:14:29 -05:00
Daniel Roschka e13b42cd13 Refactors the views used to add and delete records.
Notable changes are:
* Refactored views, utilizing more of Djangos features, resulting in simpler
  code.
* URLs are now the same when initially filling out a form and when editing a
  submitted form which contained errors.
* Instead of a result page showing the response from the DNS server (which is
  now logged using Djangos "logging" functionality) the user is now redirected
  back to the record listing of the current zone when the action was successful
  or stays on the form page when an error occured. Proper success/error
  messages are shown in both cases by utilizing Djangos "messages"
  functionality.
2015-09-05 19:03:21 +02:00
Daniel Roschka 20d785840b Fixes some python style issues.
No changes in binders functionality are included in this commit, just improved
python style
2015-06-13 12:05:42 +02:00
Daniel Roschka 581dc915fe Change in the behavior of local_settings.py
Up to now local_settings.py was used for binder specific configuration values.

This commit moves these values to settings.py, removes local_settings.py
from version control and adds logic to settings.py to allow settings in
local_settings.py to overwrite ones defined in settings.py, enabling
local_settings.py to be used as installation specific configuration file,
e.g. for custom database configuration.
2015-04-02 10:26:29 +02:00
jeffrey forman 6557f2c099 clean up how we parse multiple items in the selected list when deleting multiple records 2015-03-31 21:43:26 -04:00
Jeffrey Forman 9e95181936 Add ability to directly create reverse PTR records. Not the best, but it works. 2012-12-25 19:57:00 -05:00
Jeffrey Forman acd9ec596c Add unit tests for add cname form and add record form testing 2012-12-13 01:40:12 -05:00
Jeffrey Forman 3a9e9fe614 dont show the 'add reverse record' checkbox if on form for adding reverse record 2012-12-12 21:12:58 -05:00
Jeffrey Forman bd65e1b239 Add error reason to form validation for unicode->string list formfield 2012-12-04 06:18:40 -05:00
Jeffrey Forman aa76d59a13 add choice selection to record type when adding record. works for A/AAAA records. 2012-12-02 09:13:22 -05:00
Jeffrey Forman 42db5cedee create local_settings, pass TTL_CHOICES around to be able to pick TTL when creating record. 2012-12-02 08:49:49 -05:00
Jeffrey Forman 063d64d6c6 create feeder function to send dns updates. forward/reverse/cname call send_dns_update.
Collapse keyutils into helper. Create single create_keyring function that decides what to create.
2012-11-30 07:25:23 -05:00
Jeffrey Forman d4d4afdaa1 Add ip info on server list page.
Also clean up imports, standardize on order
2012-11-28 22:09:25 -05:00
Jeffrey Forman 8858d831b1 add a delete form model. add custom field for converting unicode to string list 2012-11-23 22:21:41 -05:00
Jeffrey Forman b1907b140a Simplify the forms modules for handling keys 2012-11-17 23:00:50 -05:00
Jeffrey Forman eb717e001a Bring things up to 1.4 standards. A LOT of file moves, simplifying of paths. Removed bcommon directory under binder 2012-10-28 14:49:15 -04:00