Commit graph

23 commits

Author SHA1 Message Date
Jan Dittberner fb1f31a9bc Fix flake8 warnings
This commit fixes all warnings created by flake8 by removing unused
imports and variable assignments. Some wrongly indented lines are now
indented correctly.
2015-12-05 13:47:41 +00:00
Jan Dittberner b11055807f Clean PEP8 violations 2015-11-22 14:03:47 +00:00
Jan Dittberner de0f3b8ca1 Add translations for domains.models
addresses #17
2015-11-08 12:14:53 +01:00
Jan Dittberner 337947f50c Update documentation
This commit adds documentation how to setup PowerDNS to use the
gnuviechadmin DNS schema. The queries are provided in a PowerDNS
configuration file.

Addresses #17
2015-11-07 22:17:43 +01:00
Jan Dittberner c058cc7b1d Improve DNS table models
This commit adds Meta information and __str__ methods  to all DNS table
models. The new methods are now covered with new tests. The new
constants DNS_DOMAIN_METADATA_KINDS and DNS_TSIG_KEY_ALGORITHMS are
defined and used in the DNSDomainMetadata and DNSTSIGKey models. A
matching database schema migration is added.

Addresses #17
2015-11-07 16:10:38 +00:00
Jan Dittberner 1df2534cf3 Add DNS models
This commit add model classes closely matching the tables defined in
PowerDNS' schema as described at
https://doc.powerdns.com/md/authoritative/backend-generic-mypgsql/.

The commit includes the model definitions a schema migration including
PostgreSQL specific CHECK constraints and the registration in the Django
admin interface.

addresses #17
2015-11-05 20:54:21 +00:00
Jan Dittberner fbfd3cf41b Add tests for domains.views
This commit adds a test class to test the CreateHostingDomain view in
domains.views.
2015-10-25 17:30:15 +00:00
Jan Dittberner f5759f3194 Add tests for domains app
Add missing tests for domains.forms and domains.models.
2015-10-15 19:50:18 +00:00
Jan Dittberner 742f0d0e33 update translations, add new strings 2015-01-27 19:08:13 +01:00
Jan Dittberner 7c9509c159 implement domain name validation
- implement domains.forms.relative_domain_validator
- use the validator for domain field validation in
  domains.forms.CreateHostingDomainForm
- use the validator for subdomain field validation in
  websites.forms.AddWebsiteForm
2015-01-27 16:41:44 +01:00
Jan Dittberner 1ab832b94a update german translation 2015-01-25 00:58:31 +01:00
Jan Dittberner 1690cace4d implement hosting domain creation
- implement domains.views.CreateHostingDomain
- define new URL create_hosting_domain in domains.urls
- add domains app URLs to gnuviechadmin.urls
- add templates domains/base.html and domains/hostingdomain_create.html
- link from hostingpackage detail page to domain creation view
2015-01-25 00:40:43 +01:00
Jan Dittberner 8615394c2f add domain creation form and model code
- implement domains.forms.CreateHostingDomainForm
- implement domains.models.HostingDomainManager.create_for_hosting_package that
  takes care of creating the necessary database objects for hosting domains
  assigned to a hosting package
2015-01-25 00:38:42 +01:00
Jan Dittberner 8a84c9660a add MailDomain.get_mailaddresses and mailaddresses property 2015-01-24 21:01:37 +01:00
Jan Dittberner 75e4892835 add admin site support for hosting domains 2015-01-24 19:24:33 +01:00
Jan Dittberner 0c291f0510 implement model changes
- add new domains.apps.AppConfig to allow translatable app description for
  domains app
- link domains to a customer
- extract common functionality from domains.models.MailDomain into abstract
  domains.models.DomainBase
- add separate domains.models.HostingDomain to allow for generic external
  domains
- add new hostingpackages.models.CustomerHostingPackageDomain to assign hosting
  domains to hosting packages
2015-01-24 19:10:58 +01:00
Jan Dittberner 9fa1944c31 add german translation
- add django.po for apps and templates
- add locale directory to LOCALE_PATHS setting
2015-01-17 16:06:25 +01:00
Jan Dittberner e73e46da3f update to Django 1.7, remove south_migrations, fix tests 2014-12-17 21:22:37 +01:00
Jan Dittberner d5b0382f88 update South to 1.0.1, rename migrations to south_migrations 2014-12-17 21:08:14 +01:00
Jan Dittberner 33e7fb29af remove empty domains.views 2014-06-01 16:45:37 +02:00
Jan Dittberner 6a931ad21c add test for domains admin 2014-06-01 16:44:42 +02:00
Jan Dittberner 23de57e138 move MailDomain admin to domains.admin 2014-05-25 15:21:04 +02:00
Jan Dittberner 5db6223bc0 introduce new app domains
- generate domains app
- duplicate managemails.models.MailDomain as domains.models.MailDomain
- add domains app to gnuviechadmin.settings.base.LOCAL_APPS
- repair managemails.tests.test_models
- fix handling of empty results in osusers.models.GroupManager.get_next_gid and
  osusers.models.UserManager.get_next_uid
2014-05-25 14:53:58 +02:00