refactor osusers.tasks into fileservertasks and ldaptasks
This commit is contained in:
parent
12b95881ec
commit
5b41d93898
6 changed files with 124 additions and 92 deletions
|
@ -1,3 +1,9 @@
|
|||
"""
|
||||
This module defines the database models for mail handling.
|
||||
|
||||
"""
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.translation import ugettext as _
|
||||
|
@ -7,7 +13,11 @@ from model_utils.models import TimeStampedModel
|
|||
|
||||
from domains.models import MailDomain
|
||||
from osusers.models import User as OsUser
|
||||
from osusers.tasks import create_file_mailbox, delete_file_mailbox
|
||||
|
||||
from fileservertasks.tasks import (
|
||||
create_file_mailbox,
|
||||
delete_file_mailbox,
|
||||
)
|
||||
|
||||
|
||||
class ActivateAbleMixin(models.Model):
|
||||
|
@ -22,6 +32,9 @@ class ActivateAbleMixin(models.Model):
|
|||
|
||||
|
||||
class MailboxManager(models.Manager):
|
||||
"""
|
||||
This is the default manager class for :py:class:`Mailbox`.
|
||||
"""
|
||||
|
||||
def get_next_mailbox_name(self, osuser):
|
||||
count = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue