Commit graph

22 commits

Author SHA1 Message Date
Jan Dittberner 6cebd80c89 Started port to Django 2.1, Python 3, Docker
This commit is a rough port to Django 2.1, Python 3 and a Docker based local
development setup. Tests fail/error but migrations and the web frontend are
already runnable. Task queue functionality is untested and translations seem to
have trouble.
2018-11-19 23:28:40 +01:00
Jan Dittberner 6533205479 Add TODO comments for mailbox task calls 2015-11-28 19:01:10 +00:00
Jan Dittberner 1cfd4327da Add tests for managemails.models
This commit adds tests for managemails.models to improve the test
coverage of that model. There are some changes to the classes in
managemails.models too:

- add a method create_mailbox to MailboxManager
- properly handle uncommited mailaddresses in MailAddress.set_mailbox
  and MailAddress.set_forward_addresses
2015-11-28 14:07:34 +00:00
Jan Dittberner b11055807f Clean PEP8 violations 2015-11-22 14:03:47 +00:00
Jan Dittberner 2af30d6148 fix mail forwarding setup bug
- fix wrong variable name in
  managemails.models.MailAddress.set_forward_addresses and typo in
  managemails.forms.EditMailAddressForm
2015-02-06 11:17:03 +01:00
Jan Dittberner 5429055f0d implement mail address target editing
- extract common code into managemails.forms.MailAddressFieldMixin
- move code from forms into managemails.models.MailAddress
- implement managemails.models.MailboxManager.unused and unused_or_own
- implement managemails.forms.EditMailAddressForm
- add managemails.views.EditMailAddress
- add URL pattern 'edit_mailaddress' to managemails.urls
- add template managemails/mailaddress_edit.html
- add changelog entry
2015-01-25 22:12:03 +01:00
Jan Dittberner af27400077 add verbose name to MailAddress fields 2015-01-25 19:01:01 +01:00
Jan Dittberner e04132bd24 improve managemails app
- add managemails.apps to give a more meaningful title in the admin site
- add verbose names to MailAddressMailbox fields
- implement managemails.models.Mailbox.get_mailaddresses and a corresponding
  property mailaddresses
2015-01-24 20:58:20 +01:00
Jan Dittberner d78bad06b7 add docstrings to managemails.models 2015-01-19 23:00:01 +01:00
Jan Dittberner 5b41d93898 refactor osusers.tasks into fileservertasks and ldaptasks 2015-01-19 21:44:57 +01:00
Jan Dittberner 19390d369a add admin list filtering and ordering for mail addresses and mailboxes 2015-01-17 12:25:54 +01:00
Jan Dittberner 54b99281e3 call create/delete mailbox tasks when saving/deleting mailboxes 2014-12-27 16:31:43 +01:00
Jan Dittberner 92c6b39e12 implement automatic creation of mailbox names
- create mailbox name when saving new mailboxes in admin
- add MailboxManager that implement get_next_mailbox_name as manager for
  Mailbox
2014-12-27 00:24:05 +01:00
Jan Dittberner ecaff6a4af move existing MailDomains to domains table 2014-05-25 15:17:08 +02:00
Jan Dittberner f085dab017 let mailboxes reference os users
- refer to osuser instead of own home, uid and gid entries in mailboxes
- add data and schema migrations
2014-05-24 22:50:43 +02:00
Jan Dittberner 3473b14e62 add timestamps to managemails models 2014-05-24 21:56:30 +02:00
Jan Dittberner d5e1128ff6 allow only one mailbox for a mailaddress
- add migration to place a unique constraint on MailAddressMailbox.mailaddress
  and drop existing primary_key
- change managemails.models.MailAddressMailbox.mailaddress to OneToOneField
2014-05-24 20:57:17 +02:00
Jan Dittberner ee46a61e6d add inline editing for mail address targets
- move active flag into managemails.models.ActivateAbleMixin
- refactor Mailbox and Mailaddress to use ActivateAbleMixin
- implement managemails.models.Mailbox.__str__
- add managemails.admin.ActivationChangeMixin to provide activate and
  deactivate actions for model admin classes
- add activate and deactivate actions for managemails.admin.MailboxAdmin
- add managemails.admin.MailAddressAdmin and inlines for MailAddressMailbox and
  MailAddressForward management on the MailAddress management admin page
2014-05-24 14:58:54 +02:00
Jan Dittberner cc7f5247ab decouple mailbox from domain 2014-05-22 22:57:21 +02:00
Jan Dittberner 618a9b8c11 add separate models for mail addresses, domains and mailboxes 2014-05-19 22:28:25 +02:00
Jan Dittberner 540871865f add initial data model for managemails 2014-05-18 21:35:00 +02:00
Jan Dittberner 123eedaeb1 add generated managemails app 2014-05-18 20:02:39 +02:00