Compare commits
86 Commits
django-3.2
...
main
Author | SHA1 | Date |
---|---|---|
Jorge Pastor | 4879eec69e | |
Jorge Pastor | bee347c9f5 | |
Jorge Pastor | 5b6bc35063 | |
Jorge Pastor | c6b5cb1d23 | |
Jorge Pastor | 599b3115dc | |
Jorge Pastor | ff444bdb32 | |
Jorge Pastor | 26497b95b1 | |
Jorge Pastor | ace8af24d5 | |
Jorge Pastor | 33293d2ba8 | |
Jorge Pastor | 20bcb83c83 | |
Jorge Pastor | 14ff506a0d | |
Jorge Pastor | 4ff5abe8f6 | |
Jorge Pastor | 081b094a3d | |
Jorge Pastor | b11ebc5d99 | |
Jorge Pastor | e161a699b9 | |
Jorge Pastor | 58b377ad86 | |
Jorge Pastor | 81b314f21a | |
Jorge Pastor | 2e99b8bccd | |
Jorge Pastor | e15d2acd13 | |
Jorge Pastor | 67c291cb99 | |
Jorge Pastor | 9c1acfaf8a | |
Jorge Pastor | 17e0497ed8 | |
Jorge Pastor | a00d1eff9f | |
Jorge Pastor | 35dd1c64c2 | |
Jorge Pastor | b72af48cd1 | |
Jorge Pastor | cb3e482dfc | |
Jorge Pastor | abbe58bc96 | |
Jorge Pastor | 8cd3605d48 | |
Jorge Pastor | e1d250c35f | |
Jorge Pastor | 281d50acc5 | |
Jorge Pastor | 54c6c59237 | |
Jorge Pastor | 9dc719abcb | |
Jorge Pastor | 0dc4352432 | |
Jorge Pastor | 475df0a2e5 | |
Jorge Pastor | 1ebf30db33 | |
Jorge Pastor | 4f258a9fe0 | |
Jorge Pastor | f3e3d45d60 | |
Jorge Pastor | 898dde9330 | |
Jorge Pastor | ad11f64e52 | |
Jorge Pastor | 142c9f97ae | |
Jorge Pastor | b911e0e89f | |
Jorge Pastor | b896dd2262 | |
Jorge Pastor | 6ff6a75eda | |
Jorge Pastor | 4688605bc6 | |
Jorge Pastor | fa1a130370 | |
Jorge Pastor | 3c3e15d1c5 | |
Jorge Pastor | bb4fc5e267 | |
Jorge Pastor | 60771b7808 | |
Jorge Pastor | 5c0c82d50b | |
Jorge Pastor | ee7cf07294 | |
Jorge Pastor | ba1ceede15 | |
Jorge Pastor | c80295c277 | |
Jorge Pastor | 1724309769 | |
Jorge Pastor | d29ffa900d | |
Jorge Pastor | ae88cc4911 | |
Jorge Pastor | 3063e78dd9 | |
Jorge Pastor | 39267baaad | |
Jorge Pastor | 15fe9fa8cf | |
Jorge Pastor | e1edd4f546 | |
Jorge Pastor | 2b635be17e | |
Jorge Pastor | 84880401ea | |
Jorge Pastor | 666126e2de | |
Jorge Pastor | c47e5ac8f3 | |
Jorge Pastor | 3d798f0cbb | |
Jorge Pastor | 16f1d20be2 | |
Jorge Pastor | 6ad5c29035 | |
Jorge Pastor | a717969926 | |
Santiago L | ee9416d8ed | |
Santiago L | 156ab51f33 | |
Santiago L | 75d743cab2 | |
Santiago L | 849af04e4b | |
Santiago L | aea944a732 | |
Santiago L | 5836d6e6ed | |
Santiago L | b21bc1363d | |
Santiago L | 52ec1660f6 | |
Santiago L | 0695099980 | |
Santiago L | 0b31049f0b | |
Santiago L | 1bd7023fdf | |
Santiago L | 40cb2b45bb | |
Jorge Pastor | 01f8ac5481 | |
Jorge Pastor | 7ec7d18544 | |
Jorge Pastor | 4cfbf57428 | |
Jorge Pastor | dc2927bc88 | |
Jorge Pastor | 3d8fddfd9e | |
Jorge Pastor | 031a290390 | |
Jorge Pastor | 1716ea36d0 |
|
@ -1,39 +1,40 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2021-04-22 11:08
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import models, migrations
|
import django.contrib.auth.models
|
||||||
import django.core.validators
|
import django.core.validators
|
||||||
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import django.utils.timezone
|
import django.utils.timezone
|
||||||
import django.contrib.auth.models
|
import orchestra.contrib.accounts.models
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
# Permissions and contenttypes
|
|
||||||
('auth', '0006_require_contenttypes_0002'),
|
|
||||||
('systemusers', '0001_initial'),
|
('systemusers', '0001_initial'),
|
||||||
|
('auth', '0006_require_contenttypes_0002'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Account',
|
name='Account',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('password', models.CharField(verbose_name='password', max_length=128)),
|
('password', models.CharField(max_length=128, verbose_name='password')),
|
||||||
('last_login', models.DateTimeField(blank=True, verbose_name='last login', null=True)),
|
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
|
||||||
('username', models.CharField(help_text='Required. 64 characters or fewer. Letters, digits and ./-/_ only.', unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid username.', 'invalid')], max_length=32, verbose_name='username')),
|
('username', models.CharField(help_text='Required. 64 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid username.', 'invalid')], verbose_name='username')),
|
||||||
('short_name', models.CharField(blank=True, verbose_name='short name', max_length=64)),
|
('short_name', models.CharField(blank=True, max_length=64, verbose_name='short name')),
|
||||||
('full_name', models.CharField(verbose_name='full name', max_length=256)),
|
('full_name', models.CharField(max_length=256, verbose_name='full name')),
|
||||||
('email', models.EmailField(help_text='Used for password recovery', max_length=254, verbose_name='email address')),
|
('email', models.EmailField(help_text='Used for password recovery', max_length=254, verbose_name='email address')),
|
||||||
('type', models.CharField(verbose_name='type', choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('COMPANY', 'Company'), ('PUBLICBODY', 'Public body'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], max_length=32, default='INDIVIDUAL')),
|
('type', models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('COMPANY', 'Company'), ('PUBLICBODY', 'Public body'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type')),
|
||||||
('language', models.CharField(verbose_name='language', choices=[('EN', 'English')], max_length=2, default='EN')),
|
('language', models.CharField(choices=[('EN', 'English')], default='EN', max_length=2, verbose_name='language')),
|
||||||
('comments', models.TextField(blank=True, verbose_name='comments', max_length=256)),
|
('comments', models.TextField(blank=True, max_length=256, verbose_name='comments')),
|
||||||
('is_superuser', models.BooleanField(help_text='Designates that this user has all permissions without explicitly assigning them.', default=False, verbose_name='superuser status')),
|
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
|
||||||
('is_active', models.BooleanField(help_text='Designates whether this account should be treated as active. Unselect this instead of deleting accounts.', default=True, verbose_name='active')),
|
('is_active', models.BooleanField(default=True, help_text='Designates whether this account should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
|
||||||
('date_joined', models.DateTimeField(verbose_name='date joined', default=django.utils.timezone.now)),
|
('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
|
||||||
('main_systemuser', models.ForeignKey(to='systemusers.SystemUser', editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='accounts_main')),
|
('main_systemuser', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='accounts_main', to='systemusers.SystemUser')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'abstract': False,
|
'abstract': False,
|
||||||
|
@ -42,4 +43,40 @@ class Migration(migrations.Migration):
|
||||||
('objects', django.contrib.auth.models.UserManager()),
|
('objects', django.contrib.auth.models.UserManager()),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
migrations.AlterModelManagers(
|
||||||
|
name='account',
|
||||||
|
managers=[
|
||||||
|
('objects', orchestra.contrib.accounts.models.AccountManager()),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='account',
|
||||||
|
name='language',
|
||||||
|
field=models.CharField(choices=[('CA', 'Catalan'), ('ES', 'Spanish'), ('EN', 'English')], default='CA', max_length=2, verbose_name='language'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='account',
|
||||||
|
name='type',
|
||||||
|
field=models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='account',
|
||||||
|
name='username',
|
||||||
|
field=models.CharField(help_text='Required. 32 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid username.', 'invalid')], verbose_name='username'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='account',
|
||||||
|
name='language',
|
||||||
|
field=models.CharField(choices=[('EN', 'English')], default='EN', max_length=2, verbose_name='language'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='account',
|
||||||
|
name='type',
|
||||||
|
field=models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('COMPANY', 'Company'), ('PUBLICBODY', 'Public body'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='account',
|
||||||
|
name='main_systemuser',
|
||||||
|
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='accounts_main', to='systemusers.SystemUser'),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,86 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-04-22 11:08
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import django.contrib.auth.models
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
import django.utils.timezone
|
|
||||||
import orchestra.contrib.accounts.models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
replaces = [('accounts', '0001_initial'), ('accounts', '0002_auto_20170528_2005'), ('accounts', '0003_auto_20210330_1049'), ('accounts', '0004_auto_20210422_1108')]
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('systemusers', '0001_initial'),
|
|
||||||
('auth', '0006_require_contenttypes_0002'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Account',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('password', models.CharField(max_length=128, verbose_name='password')),
|
|
||||||
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
|
|
||||||
('username', models.CharField(help_text='Required. 64 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid username.', 'invalid')], verbose_name='username')),
|
|
||||||
('short_name', models.CharField(blank=True, max_length=64, verbose_name='short name')),
|
|
||||||
('full_name', models.CharField(max_length=256, verbose_name='full name')),
|
|
||||||
('email', models.EmailField(help_text='Used for password recovery', max_length=254, verbose_name='email address')),
|
|
||||||
('type', models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('COMPANY', 'Company'), ('PUBLICBODY', 'Public body'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type')),
|
|
||||||
('language', models.CharField(choices=[('EN', 'English')], default='EN', max_length=2, verbose_name='language')),
|
|
||||||
('comments', models.TextField(blank=True, max_length=256, verbose_name='comments')),
|
|
||||||
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
|
|
||||||
('is_active', models.BooleanField(default=True, help_text='Designates whether this account should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
|
|
||||||
('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
|
|
||||||
('main_systemuser', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='accounts_main', to='systemusers.SystemUser')),
|
|
||||||
],
|
|
||||||
options={
|
|
||||||
'abstract': False,
|
|
||||||
},
|
|
||||||
managers=[
|
|
||||||
('objects', django.contrib.auth.models.UserManager()),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.AlterModelManagers(
|
|
||||||
name='account',
|
|
||||||
managers=[
|
|
||||||
('objects', orchestra.contrib.accounts.models.AccountManager()),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='language',
|
|
||||||
field=models.CharField(choices=[('CA', 'Catalan'), ('ES', 'Spanish'), ('EN', 'English')], default='CA', max_length=2, verbose_name='language'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='username',
|
|
||||||
field=models.CharField(help_text='Required. 32 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid username.', 'invalid')], verbose_name='username'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='language',
|
|
||||||
field=models.CharField(choices=[('EN', 'English')], default='EN', max_length=2, verbose_name='language'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('COMPANY', 'Company'), ('PUBLICBODY', 'Public body'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='main_systemuser',
|
|
||||||
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='accounts_main', to='systemusers.SystemUser'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,38 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2017-05-28 18:05
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
import orchestra.contrib.accounts.models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('accounts', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterModelManagers(
|
|
||||||
name='account',
|
|
||||||
managers=[
|
|
||||||
('objects', orchestra.contrib.accounts.models.AccountManager()),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='language',
|
|
||||||
field=models.CharField(choices=[('CA', 'Catalan'), ('ES', 'Spanish'), ('EN', 'English')], default='CA', max_length=2, verbose_name='language'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='account',
|
|
||||||
name='username',
|
|
||||||
field=models.CharField(help_text='Required. 32 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid username.', 'invalid')], verbose_name='username'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,6 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# Generated by Django 2.2.24 on 2024-07-11 12:25
|
||||||
# Generated by Django 1.10.5 on 2021-03-30 10:49
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
@ -8,18 +6,18 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('accounts', '0002_auto_20170528_2005'),
|
('accounts', '0001_initial'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='account',
|
model_name='account',
|
||||||
name='language',
|
name='language',
|
||||||
field=models.CharField(choices=[('EN', 'English')], default='EN', max_length=2, verbose_name='language'),
|
field=models.CharField(choices=[('CA', 'Catalan'), ('ES', 'Spanish'), ('EN', 'English')], default='CA', max_length=2, verbose_name='language'),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='account',
|
model_name='account',
|
||||||
name='type',
|
name='type',
|
||||||
field=models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('COMPANY', 'Company'), ('PUBLICBODY', 'Public body'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type'),
|
field=models.CharField(choices=[('INDIVIDUAL', 'Individual'), ('ASSOCIATION', 'Association'), ('CUSTOMER', 'Customer'), ('STAFF', 'Staff'), ('FRIEND', 'Friend')], default='INDIVIDUAL', max_length=32, verbose_name='type'),
|
||||||
),
|
),
|
||||||
]
|
]
|
|
@ -0,0 +1,42 @@
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
BBBB BBBB BBBBBBBBBB BBBBBB BBBBBBBBBBBB
|
||||||
|
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXX
|
||||||
|
XX XXXXXXBBB BBBBBBBBBBBBBXX gettext(u'Home') XXXX
|
||||||
|
BB BBBBBBBBBBBB
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFFFFFFFFFFFXXXX
|
||||||
|
BBBB
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX BB BBBBBBBBBBBBBBBBBBBBBXX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFXXXXBBBBFFFFFFFFBBBBB
|
||||||
|
BBBBB
|
||||||
|
BB BBBBBBBBBBB
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXX gettext(u'Select %(name)s account') SSSSSS SSSSSSSS SSSSSSSXXXX
|
||||||
|
BBBBB
|
||||||
|
XXXXXXXX BB BBB gettext(u'Add') BBBBFFFFFFFFFFFFFFFFFFBBBBB
|
||||||
|
XXXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBBBBBBBBB
|
||||||
|
BB BBBBBBBB
|
||||||
|
XXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXXXXXXX X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXX X X XXXX
|
||||||
|
XXXXXXX XXXXXXXX XXXXXXXXX gettext(u'Services') XXXXXXXXX
|
||||||
|
BBB BBBBBBB BB BBBBBBBB
|
||||||
|
XXXXXXX XXXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXXXXXXXFFFFFFFFXXXXXXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXXXXXXXXXXX
|
||||||
|
BBBBB
|
||||||
|
BB BBBBBBBB
|
||||||
|
XXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXXXXXXX X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXX XXX XXX XXXXXX
|
||||||
|
XXXXXXX XXXXXXXX XXXXXXXXX gettext(u'Accounts') XXXXXXXXX
|
||||||
|
BBB BBBBBBB BB BBBBBBBB
|
||||||
|
XXXXXXX XXXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXXXXXXXFFFFFFFFXXXXXXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXXXXXXXXXXX
|
||||||
|
BBBBB
|
||||||
|
|
||||||
|
BBBBBBBB
|
|
@ -0,0 +1,49 @@
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
BBBB BBBB BBBBBBBBBB BBBBBBBBBB
|
||||||
|
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXX
|
||||||
|
XX XXXXXXBBB BBBBBBBBBBBBBXX gettext(u'Home') XXXX
|
||||||
|
BB BBBBBBB
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFFFFFFFFFFFXXXX
|
||||||
|
BBBB
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
BBBBB
|
||||||
|
XXXXXXXX FFFFFFFF
|
||||||
|
XXXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBBBBBBBBB
|
||||||
|
XXXX
|
||||||
|
BBB BBBBBBBBBBBBBBBBBBBBBBBBBBB BB BBBBBBB
|
||||||
|
XX XXXXXXBBBBBBBBBBBBBBBBBBBBB BBBBBBB BBBBBBBB BBBBBBBBX XXXXXXXXXXXXXXXX
|
||||||
|
BB BBBBBBBBBBBB
|
||||||
|
gettext(u'Add %(name)s') SSS SSSSSSSS
|
||||||
|
BBBB
|
||||||
|
gettext(u'Add %(account)s %(name)s') SSS SSSSSSSSSSS SSSSSSSS
|
||||||
|
BBBBB
|
||||||
|
XXXX
|
||||||
|
XXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
||||||
|
|
||||||
|
BBBBB BBBBBBB
|
||||||
|
BB BBBBBBBBBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXX gettext(u'Filter') XXXXX
|
||||||
|
BB BBBBBBB
|
||||||
|
XXXX gettext(u'By account') XXXXX
|
||||||
|
XXXX
|
||||||
|
XXX BB BBB BBBBBBBBBBBBXXXXXXXXXXXXXXXXBBBBBXXX XXXXXXXXXXXXXXXXXFFFFFFFFFFFFFFFFFFXXXXXXXXX
|
||||||
|
XXX BB BBBBBBBBBBBBXXXXXXXXXXXXXXXXBBBBBXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXX
|
||||||
|
BBBBB
|
||||||
|
BBB BBBB BB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BB BBBBBBBBBB
|
||||||
|
XXXXXX
|
||||||
|
BBBBB
|
||||||
|
BBBBBBBB
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
BBBB BBBB BBBB BBBBBBBBBB
|
||||||
|
|
||||||
|
BBBBB BBBBBBB
|
||||||
|
BB BBBBBBBBBBBBB
|
||||||
|
XXX gettext(u"Deleting the selected %(objects_name)s would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:") SSSSSSSS SSS SSSSSSSS SSSSSSSSSSSSSSSS SSSSS SSSSSS SS SSSSSSSS SSSSSSS SSSSSSSS SSS SSSS SSSSSSS SSSSSSS SSSS SSSSSSSSSS SS SSSSSS SSS SSSSSSSSS SSSSS SS SSSSSSSSXXXX
|
||||||
|
XXXX
|
||||||
|
BBB BBB BB BBBBBBBBBBBBB
|
||||||
|
XXXXXXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX
|
||||||
|
BBBB BBBBBBBBB
|
||||||
|
XXX gettext(u'Deleting the selected %(objects_name)s would require deleting the following protected related objects:') SSSSSSSS SSS SSSSSSSS SSSSSSSSSSSSSSSS SSSSS SSSSSSS SSSSSSSS SSS SSSSSSSSS SSSSSSSSS SSSSSSS SSSSSSSSXXXX
|
||||||
|
XXXX
|
||||||
|
BBB BBB BB BBBBBBBBB
|
||||||
|
XXXXXXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX
|
||||||
|
BBBB
|
||||||
|
XXX gettext(u'Are you sure you want to delete the selected %(objects_name)s? All of the following objects and their related items will be deleted:') SSS SSS SSSS SSS SSSS SS SSSSSS SSS SSSSSSSS SSSSSSSSSSSSSSSSS SSS SS SSS SSSSSSSSS SSSSSSS SSS SSSSS SSSSSSS SSSSS SSSS SS SSSSSSSSXXXX
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
XXXX gettext(u'Objects') XXXXX
|
||||||
|
BBB BBBBBBBBBBBBBBBB BB BBBBBBBBBBBBBBBBB
|
||||||
|
XXXXFFFFFFFFFFFFFFXXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX XXXXXXXXX XXXXXXXXXXXXXXBBBBBBBBBB
|
||||||
|
XXXXX
|
||||||
|
BBB BBB BB BBBBBBBB
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXX XXXXXXXFFFFFFFFFFX XX
|
||||||
|
BBBBBB
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXX XX
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXX gettext(u"Yes, I'm sure") X XX
|
||||||
|
XX XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX XXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXX gettext(u'No, take me back') XXXX
|
||||||
|
XXXXXX
|
||||||
|
XXXXXXX
|
||||||
|
BBBBB
|
||||||
|
BBBBBBBB
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
BBBB BBBB BBBB BBBBBBBBBB
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBB XXXX XXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXBBBBBBBB
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXX
|
||||||
|
XX XXXXXXBBB BBBBBBBBBBBBBXX gettext(u'Home') XXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFXXXX
|
||||||
|
XXXXXXXX BB BBBBBBB gettext(u'Disable %(objects_name)s') SSSSSSS SSSSSSSSSSSSSSSSBBBB gettext(u'Enable %(objects_name)s') SSSSSS SSSSSSSSSSSSSSSSBBBBB
|
||||||
|
XXXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
||||||
|
BBBBB BBBBBBB
|
||||||
|
BB BBBBBBBXXX gettext(u'Are you sure you want to disable selected %(objects_name)s?') SSS SSS SSSS SSS SSSS SS SSSSSSS SSSSSSSS SSSSSSSSSSSSSSSSSXXXX
|
||||||
|
BBBBXXX gettext(u'Are you sure you want to enable selected %(objects_name)s?') SSS SSS SSSS SSS SSSS SS SSSSSS SSSSSSSS SSSSSSSSSSSSSSSSSXXXX
|
||||||
|
BBBBB
|
||||||
|
XXXX gettext(u'Objects') XXXXX
|
||||||
|
BBB BBBBBBBBBBBBBBBB BB BBBBBBBBBBBBBBBBB
|
||||||
|
XXXXFFFFFFFFFFFFFFXXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX XXXXXXXXX XXXXXXXXXXXXXXBBBBBBBBBB
|
||||||
|
XXXXX
|
||||||
|
BBB BBB BB BBBBBBBB
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXX XXXXXXXFFFFFFFFFFX XX
|
||||||
|
BBBBBB
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXX XX
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXX XX
|
||||||
|
XXXXXX XXXXXXXXXXXXX XXXXXXX gettext(u"Yes, I'm sure") X XX
|
||||||
|
XX XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX XXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXX gettext(u'No, take me back') XXXX
|
||||||
|
XXXXXX
|
||||||
|
XXXXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
BBBB BBBB BBBBBBBBBB
|
||||||
|
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXX
|
||||||
|
XX XXXXXXBBB BBBBBBBBBBBBBXX gettext(u'Home') XXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFXXXX
|
||||||
|
XXXXXXXX gettext(u'Select %(name)s account') SSSSSS SSSSSSSS SSSSSSS
|
||||||
|
XXXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
|
@ -0,0 +1,84 @@
|
||||||
|
BBBB BBBB BBBBBBBBBB BBBBB
|
||||||
|
XXXXXX
|
||||||
|
XXXXXX
|
||||||
|
XXXXXXXBBBBB BBBBBXXXXXXX XXXXXXX XXXXXXBBBBBBBBXXXXXXXX
|
||||||
|
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
|
||||||
|
BBBBB BBBBBBBBBBBB
|
||||||
|
XXXXXX XXXXXXXXXXXXXXXX
|
||||||
|
XXXX X
|
||||||
|
XXXXXXXXXX XXXXXX
|
||||||
|
XXXXXXX XX XXXX XXXXXXXXXXX
|
||||||
|
XXXXXX XXXX XXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXX XXXXXX XXXXXXXXXXX XXXXXX XXXXXXX XXXXXX XXXXXXXXXXX
|
||||||
|
XXXXXXXXXX XXXXX
|
||||||
|
XXXXXX XXXXX
|
||||||
|
X
|
||||||
|
XXXXX X
|
||||||
|
XXXXXX XXXXXX
|
||||||
|
XXXXXX XXXXXXXX XXXX XXXXX
|
||||||
|
X
|
||||||
|
XXXXXXXXXXXXXXXX X
|
||||||
|
XXXXXXX XXX XXX XXXX XXXXX
|
||||||
|
X
|
||||||
|
XXXXXXXXXXX X
|
||||||
|
XXXXXXXXXXXXXXXX XXXXX
|
||||||
|
XXXXXXXXXXXX XXXXX
|
||||||
|
XXXXXX XXXXX
|
||||||
|
X
|
||||||
|
XXXXXXXXX X
|
||||||
|
XXXXXXXX XXXX
|
||||||
|
XXXXXXX XXX XXX XXXX XXXXX
|
||||||
|
X
|
||||||
|
XXXXXXXX X
|
||||||
|
XXXXXXXXXXX XXXXX
|
||||||
|
X
|
||||||
|
XX X
|
||||||
|
XXXXXXXXXXX XXXXX
|
||||||
|
X
|
||||||
|
X X
|
||||||
|
XXXXXXXXXXXXXXXX XXXXX
|
||||||
|
XXXXXX XXXXXXX XXXX XXXXX
|
||||||
|
X
|
||||||
|
XXXXXXXX
|
||||||
|
XXXXXXX
|
||||||
|
|
||||||
|
XXXXXX
|
||||||
|
XXXX XXXXXXXXXX gettext(u'Service report generated on') FFFFXXXXXX
|
||||||
|
BBB BBBBBBBB BBBBB BB BBBBBBBB
|
||||||
|
XXXX X XX XXXXXXFFFFFFFFFXXXXXXXXXXX
|
||||||
|
XXXX
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
gettext(u'account registered on') FFFFXXXX
|
||||||
|
XXX XXXXXXXXXXXXXXXXX
|
||||||
|
XXX XXXXXXXXXXXXXXXXXXX gettext(u'Resources') XXXXX
|
||||||
|
BB BBBBBBBBBBBBBBBBB
|
||||||
|
XXXX
|
||||||
|
BBB BBBBBBBB BB BBBBBBBBBBBBBBBBB
|
||||||
|
XXXXXX XXXXXXFFFFFFFFFXX BB BBBBBBBBBBBBB BB BBBBXXXXX XXXXXXX gettext(u'Used') XXXXXXXXXBBBBBBB BBBBBBBBBBBBBBBBBB BB BBBBBB BBBBBBBBBBBBB BB BBBB X BBBBBXXXXX XXXXXXX gettext(u'Allocated') XXXXXXXXXBBBBBXXXX XXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX
|
||||||
|
BBBBB
|
||||||
|
|
||||||
|
BBB BBBBB BBBBBBB BB BBBBB
|
||||||
|
XXX XXXXXXXXXXXXXXXXXXXXX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXXXXXXXXXXFFFFFFFFXXXXXXXXX
|
||||||
|
XXXX
|
||||||
|
BBB BBB BB BBBBBBB
|
||||||
|
XXX XXXXXXXXXXXXXXXXXX XXXXXXFFFFFFFFFXXXXXX
|
||||||
|
BB BBB BBBBBBBBBBBB X gettext(u'disabled') XBBBBB
|
||||||
|
FFFFFFFF
|
||||||
|
BB BBBBBBBBBBBBB
|
||||||
|
XXXX
|
||||||
|
BBB BBBBBBBB BB BBBBBBBBBBBBB
|
||||||
|
XXXXXX XXXXXXFFFFFFFFFXX BB BBBBBBBBBBBBB BB BBBBXXXXX XXXXXXX gettext(u'Used') XXXXXXXXXBBBBBBB BBBBBBBBBBBBBBBBBB BB BBBBBB BBBBBBBBBBBBB BB BBBB X BBBBBXXXXX XXXXXXX gettext(u'Allocated') XXXXXXXXXBBBBBXXXX XXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX
|
||||||
|
BBBBB
|
||||||
|
XXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXX
|
||||||
|
XXXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXXXX
|
||||||
|
XXXXXXX
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -29,6 +29,9 @@ class MySQLController(ServiceController):
|
||||||
# Create database and re-set permissions
|
# Create database and re-set permissions
|
||||||
mysql -e 'CREATE DATABASE `%(database)s`;' || true
|
mysql -e 'CREATE DATABASE `%(database)s`;' || true
|
||||||
mysql mysql -e 'DELETE FROM db WHERE db = "%(database)s";'\
|
mysql mysql -e 'DELETE FROM db WHERE db = "%(database)s";'\
|
||||||
|
|
||||||
|
# wait to create user
|
||||||
|
sleep 1.5
|
||||||
""") % context
|
""") % context
|
||||||
)
|
)
|
||||||
for user in database.users.all():
|
for user in database.users.all():
|
||||||
|
@ -178,7 +181,7 @@ class MysqlDisk(ServiceMonitor):
|
||||||
def get_context(self, db):
|
def get_context(self, db):
|
||||||
context = {
|
context = {
|
||||||
'db_name': db.name,
|
'db_name': db.name,
|
||||||
'db_dirname': db.name.replace('-', '@002d'),
|
'db_dirname': db.name.replace('-', '@002d').replace('.', '@002e'),
|
||||||
'db_id': db.pk,
|
'db_id': db.pk,
|
||||||
'db_type': db.type,
|
'db_type': db.type,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
# Generated by Django 2.2.28 on 2023-06-28 17:06
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2021-04-22 11:25
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -8,39 +10,69 @@ import orchestra.core.validators
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Database',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('name', models.CharField(max_length=64, validators=[orchestra.core.validators.validate_name], verbose_name='name')),
|
||||||
|
('type', models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type')),
|
||||||
|
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='databases', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
||||||
|
],
|
||||||
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='DatabaseUser',
|
name='DatabaseUser',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('username', models.CharField(max_length=16, validators=[orchestra.core.validators.validate_name], verbose_name='username')),
|
('username', models.CharField(max_length=16, validators=[orchestra.core.validators.validate_name], verbose_name='username')),
|
||||||
('password', models.CharField(max_length=256, verbose_name='password')),
|
('password', models.CharField(max_length=256, verbose_name='password')),
|
||||||
('type', models.CharField(choices=[('mysql', 'MySQL')], default='mysql', max_length=32, verbose_name='type')),
|
('type', models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type')),
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='databaseusers', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='databaseusers', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'verbose_name_plural': 'DB users',
|
'verbose_name_plural': 'DB users',
|
||||||
'unique_together': {('username', 'type')},
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.AddField(
|
||||||
name='Database',
|
model_name='database',
|
||||||
fields=[
|
name='users',
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
field=models.ManyToManyField(blank=True, related_name='databases', to='databases.DatabaseUser', verbose_name='users'),
|
||||||
('name', models.CharField(max_length=64, validators=[orchestra.core.validators.validate_name], verbose_name='name')),
|
),
|
||||||
('type', models.CharField(choices=[('mysql', 'MySQL')], default='mysql', max_length=32, verbose_name='type')),
|
migrations.AlterUniqueTogether(
|
||||||
('comments', models.TextField(blank=True, default='')),
|
name='databaseuser',
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='databases', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
unique_together=set([('username', 'type')]),
|
||||||
('users', models.ManyToManyField(blank=True, related_name='databases', to='databases.DatabaseUser', verbose_name='users')),
|
),
|
||||||
],
|
migrations.AlterUniqueTogether(
|
||||||
options={
|
name='database',
|
||||||
'unique_together': {('name', 'type')},
|
unique_together=set([('name', 'type')]),
|
||||||
},
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='database',
|
||||||
|
name='type',
|
||||||
|
field=models.CharField(choices=[('mysql', 'MySQL')], default='mysql', max_length=32, verbose_name='type'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='databaseuser',
|
||||||
|
name='type',
|
||||||
|
field=models.CharField(choices=[('mysql', 'MySQL')], default='mysql', max_length=32, verbose_name='type'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='database',
|
||||||
|
name='comments',
|
||||||
|
field=models.TextField(blank=True, default=''),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='database',
|
||||||
|
name='type',
|
||||||
|
field=models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='databaseuser',
|
||||||
|
name='type',
|
||||||
|
field=models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,82 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-04-22 11:25
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
import orchestra.core.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
replaces = [('databases', '0001_initial'), ('databases', '0002_auto_20170528_2005'), ('databases', '0003_database_comments'), ('databases', '0004_auto_20210330_1049')]
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Database',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=64, validators=[orchestra.core.validators.validate_name], verbose_name='name')),
|
|
||||||
('type', models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type')),
|
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='databases', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='DatabaseUser',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('username', models.CharField(max_length=16, validators=[orchestra.core.validators.validate_name], verbose_name='username')),
|
|
||||||
('password', models.CharField(max_length=256, verbose_name='password')),
|
|
||||||
('type', models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type')),
|
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='databaseusers', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
|
||||||
],
|
|
||||||
options={
|
|
||||||
'verbose_name_plural': 'DB users',
|
|
||||||
},
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='database',
|
|
||||||
name='users',
|
|
||||||
field=models.ManyToManyField(blank=True, related_name='databases', to='databases.DatabaseUser', verbose_name='users'),
|
|
||||||
),
|
|
||||||
migrations.AlterUniqueTogether(
|
|
||||||
name='databaseuser',
|
|
||||||
unique_together=set([('username', 'type')]),
|
|
||||||
),
|
|
||||||
migrations.AlterUniqueTogether(
|
|
||||||
name='database',
|
|
||||||
unique_together=set([('name', 'type')]),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='database',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('mysql', 'MySQL')], default='mysql', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='databaseuser',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('mysql', 'MySQL')], default='mysql', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='database',
|
|
||||||
name='comments',
|
|
||||||
field=models.TextField(blank=True, default=''),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='database',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='databaseuser',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,20 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2020-02-04 11:21
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('databases', '0002_auto_20170528_2005'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='database',
|
|
||||||
name='comments',
|
|
||||||
field=models.TextField(default=''),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,30 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-03-30 10:49
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('databases', '0003_database_comments'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='database',
|
|
||||||
name='comments',
|
|
||||||
field=models.TextField(blank=True, default=''),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='database',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='databaseuser',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(choices=[('mysql', 'MySQL'), ('postgres', 'PostgreSQL')], default='mysql', max_length=32, verbose_name='type'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,6 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# Generated by Django 2.2.24 on 2024-07-11 12:25
|
||||||
# Generated by Django 1.10.5 on 2017-05-28 18:05
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
@ -8,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('databases', '0001_initial'),
|
('databases', '0006_auto_20230705_1237'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
Binary file not shown.
|
@ -0,0 +1,462 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-09-06 07:58+0000\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: actions.py:25
|
||||||
|
#, python-format
|
||||||
|
msgid "%s zone content"
|
||||||
|
msgstr "%s contingut zona"
|
||||||
|
|
||||||
|
#: actions.py:29 templates/admin/domains/domain/change_form.html:7
|
||||||
|
#: templates/admin/domains/domain/view_zone.html:12
|
||||||
|
msgid "View zone"
|
||||||
|
msgstr "Veure zona"
|
||||||
|
|
||||||
|
#: actions.py:53
|
||||||
|
msgid ""
|
||||||
|
"This subdomain was not explicitly selected but has been automatically added "
|
||||||
|
"to this list."
|
||||||
|
msgstr ""
|
||||||
|
"Aquest subdomini no va ser seleccionat explícitament, però s'ha afegit automàticament"
|
||||||
|
"A aquesta llista."
|
||||||
|
|
||||||
|
|
||||||
|
#: actions.py:88
|
||||||
|
msgid "Records for one selected domain have been updated."
|
||||||
|
msgstr "S'han actualitzat els registres d'un domini seleccionat."
|
||||||
|
|
||||||
|
#: actions.py:89
|
||||||
|
#, python-format
|
||||||
|
msgid "Records for %i selected domains have been updated."
|
||||||
|
msgstr "S'han actualitzat els registres dels dominis seleccionars %i "
|
||||||
|
|
||||||
|
#: actions.py:96 actions.py:97
|
||||||
|
msgid "Edit records"
|
||||||
|
msgstr "Editar registres"
|
||||||
|
|
||||||
|
#: actions.py:112
|
||||||
|
msgid "Set SOA on subdomains is not possible."
|
||||||
|
msgstr "Configurar SOA en subdominis no és possible."
|
||||||
|
|
||||||
|
#: actions.py:120
|
||||||
|
#, python-format
|
||||||
|
msgid "SOA set %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: actions.py:131
|
||||||
|
msgid "SOA record for one domain has been updated."
|
||||||
|
msgstr "El registre SOA per a un domini s'ha actualitzat."
|
||||||
|
|
||||||
|
#: actions.py:132
|
||||||
|
#, python-format
|
||||||
|
msgid "SOA record for %s domains has been updated."
|
||||||
|
msgstr "S'ha actualitzat el rècord SOA per als dominis de %s"
|
||||||
|
|
||||||
|
#: actions.py:139 actions.py:152
|
||||||
|
msgid "Set SOA for selected domains"
|
||||||
|
msgstr "Configurar SOA pels dominis seleccionats"
|
||||||
|
|
||||||
|
#: actions.py:141
|
||||||
|
msgid "Set SOA"
|
||||||
|
msgstr "Afegir SOA"
|
||||||
|
|
||||||
|
#: admin.py:28
|
||||||
|
msgid "Extra records"
|
||||||
|
msgstr "Registres Extra"
|
||||||
|
|
||||||
|
#: admin.py:36
|
||||||
|
msgid "Subdomains"
|
||||||
|
msgstr "Subdominis"
|
||||||
|
|
||||||
|
#: admin.py:39
|
||||||
|
msgid "Name"
|
||||||
|
msgstr "Nom"
|
||||||
|
|
||||||
|
#: admin.py:44
|
||||||
|
msgid "Declared records"
|
||||||
|
msgstr "Registres declarats"
|
||||||
|
|
||||||
|
#: admin.py:78 models.py:27
|
||||||
|
msgid "name"
|
||||||
|
msgstr "nom"
|
||||||
|
|
||||||
|
#: admin.py:83
|
||||||
|
msgid "Is top"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:96
|
||||||
|
msgid "Edit website"
|
||||||
|
msgstr "Editar website"
|
||||||
|
|
||||||
|
#: admin.py:105
|
||||||
|
msgid "Add website"
|
||||||
|
msgstr "Crear website"
|
||||||
|
|
||||||
|
#: admin.py:107
|
||||||
|
#, python-format
|
||||||
|
msgid "No website %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:110
|
||||||
|
msgid "Websites"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:119
|
||||||
|
msgid "Add address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:127
|
||||||
|
#, python-format
|
||||||
|
msgid "No address %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:129
|
||||||
|
msgid "Addresses"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:151 admin.py:158
|
||||||
|
msgid "Implicit records"
|
||||||
|
msgstr "Registres implicits"
|
||||||
|
|
||||||
|
#: admin.py:165
|
||||||
|
msgid "SOA"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:168
|
||||||
|
msgid ""
|
||||||
|
"SOA (Start of Authority) records are used to determine how the zone "
|
||||||
|
"propagates to the secondary nameservers."
|
||||||
|
msgstr ""
|
||||||
|
"Els registres SOA (Start of Authority) s'utilitzen per determinar com la zona"
|
||||||
|
"Es propaga als servidors de noms secundaris."
|
||||||
|
|
||||||
|
#: backends.py:22
|
||||||
|
msgid "Bind9 master domain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:184
|
||||||
|
msgid "Bind9 slave domain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:7
|
||||||
|
msgid "top domains"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:12
|
||||||
|
msgid "Top domains"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:22
|
||||||
|
msgid "has websites"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:27
|
||||||
|
msgid "True"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:28
|
||||||
|
msgid "False"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:41
|
||||||
|
msgid "has addresses"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:14
|
||||||
|
msgid "Names"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:15
|
||||||
|
msgid ""
|
||||||
|
"Fully qualified domain name per line. All domains will have the provided "
|
||||||
|
"account and records."
|
||||||
|
msgstr ""
|
||||||
|
"Nom de domini completament qualificat per línia. Tots els dominis tindran el subministrament"
|
||||||
|
"Compte i registres."
|
||||||
|
|
||||||
|
#: forms.py:29
|
||||||
|
#, python-format
|
||||||
|
msgid "%s domain name provided multiple times."
|
||||||
|
msgstr "El nom de domini %s es va proporcionar diverses vegades."
|
||||||
|
|
||||||
|
#: forms.py:65
|
||||||
|
msgid "An account should be provided for top domain names."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:72
|
||||||
|
msgid "Provided domain names belong to different accounts."
|
||||||
|
msgstr "Els noms de domini pertanyen a diferents comptes"
|
||||||
|
|
||||||
|
#: forms.py:118
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"%s: Hosts can not have underscore character '_', consider providing a SRV, "
|
||||||
|
"CNAME or TXT record."
|
||||||
|
msgstr ""
|
||||||
|
"%s: Els Hosts no poden tenir un caràcter '_', considereu proporcionar un SRV"
|
||||||
|
"Registre CNAME o TXT."
|
||||||
|
|
||||||
|
#: forms.py:142
|
||||||
|
msgid "Clear refresh"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:143
|
||||||
|
msgid "Remove custom refresh value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:145
|
||||||
|
msgid "Clear retry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:146
|
||||||
|
msgid "Remove custom retry value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:148
|
||||||
|
msgid "Clear expire"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:149
|
||||||
|
msgid "Remove custom expire value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:151
|
||||||
|
msgid "Clear min TTL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:152
|
||||||
|
msgid "Remove custom min TTL value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:28
|
||||||
|
msgid "Domain or subdomain name."
|
||||||
|
msgstr "nom de Domini o Subdomini"
|
||||||
|
|
||||||
|
#: models.py:33
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Compte"
|
||||||
|
|
||||||
|
#: models.py:34
|
||||||
|
msgid "Automatically selected for subdomains."
|
||||||
|
msgstr "Seleccionat automàticament per a subdominis."
|
||||||
|
|
||||||
|
#: models.py:36
|
||||||
|
msgid "top domain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:37
|
||||||
|
msgid "serial"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:38
|
||||||
|
msgid "A revision number that changes whenever this domain is updated."
|
||||||
|
msgstr "Un número de revisió que canvia sempre que aquest domini s'actualitzi."
|
||||||
|
|
||||||
|
#: models.py:39
|
||||||
|
msgid "refresh"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:41
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The time a secondary DNS server waits before querying the primary DNS "
|
||||||
|
"server's SOA record to check for changes. When the refresh time expires, the "
|
||||||
|
"secondary DNS server requests a copy of the current SOA record from the "
|
||||||
|
"primary. The primary DNS server complies with this request. The secondary "
|
||||||
|
"DNS server compares the serial number of the primary DNS server's current "
|
||||||
|
"SOA record and the serial number in it's own SOA record. If they are "
|
||||||
|
"different, the secondary DNS server will request a zone transfer from the "
|
||||||
|
"primary DNS server. The default value is <tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"El temps que un servidor DNS secundari espera abans de consultar el DNS primari"
|
||||||
|
"Registre SOA del servidor per comprovar si hi ha canvis. Quan el temps d'actualització caduca,"
|
||||||
|
"El servidor DNS secundari sol·licita una còpia del registre SOA actual del"
|
||||||
|
"Primària. El servidor DNS primari compleix aquesta sol·licitud. La secundària"
|
||||||
|
"El servidor DNS compara el número de sèrie del corrent principal del servidor DNS"
|
||||||
|
"Registre SOA i el número de sèrie del seu propi registre SOA. Si ho són"
|
||||||
|
"Diferent, el servidor DNS secundari sol·licitarà una transferència de zona des del"
|
||||||
|
"Servidor DNS primari. El valor per defecte és <tt>%s</tt>."
|
||||||
|
|
||||||
|
#: models.py:50
|
||||||
|
msgid "retry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:52
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The time a secondary server waits before retrying a failed zone transfer. "
|
||||||
|
"Normally, the retry time is less than the refresh time. The default value is "
|
||||||
|
"<tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"El temps que un servidor secundari espera abans de tornar a tornar a transferir una zona fallida."
|
||||||
|
"Normalment, el temps de tornada és inferior al temps d'actualització. El valor predeterminat és"
|
||||||
|
"<tt>%s</tt>."
|
||||||
|
|
||||||
|
#: models.py:55
|
||||||
|
msgid "expire"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:57
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The time that a secondary server will keep trying to complete a zone "
|
||||||
|
"transfer. If this time expires prior to a successful zone transfer, the "
|
||||||
|
"secondary server will expire its zone file. This means the secondary will "
|
||||||
|
"stop answering queries. The default value is <tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"El temps que un servidor secundari continuarà intentant completar una zona"
|
||||||
|
"Transferència. Si aquesta vegada caduca abans d'una transferència de zona amb èxit,"
|
||||||
|
"El servidor secundari caducarà el seu fitxer de zona. Això significa que la voluntat secundària"
|
||||||
|
"Deixa de respondre a les consultes. El valor predeterminat és <tt>%s</tt>."
|
||||||
|
|
||||||
|
#: models.py:62
|
||||||
|
msgid "min TTL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:64
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The minimum time-to-live value applies to all resource records in the zone "
|
||||||
|
"file. This value is supplied in query responses to inform other servers how "
|
||||||
|
"long they should keep the data in cache. The default value is <tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"El valor mínim de temps en viu s'aplica a tots els registres de recursos de la zona"
|
||||||
|
"Fitxer. Aquest valor es subministra a les respostes de consulta per informar a altres servidors com"
|
||||||
|
"Long han de mantenir les dades en memòria cau. El valor predeterminat és <tt>%s</tt>"
|
||||||
|
|
||||||
|
#: models.py:118
|
||||||
|
msgid "top domain with one subdomain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:119
|
||||||
|
#, python-format
|
||||||
|
msgid "top domain with %d subdomains"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:121
|
||||||
|
msgid "subdomain"
|
||||||
|
msgstr "subdomini"
|
||||||
|
|
||||||
|
#: models.py:308
|
||||||
|
msgid "A (IPv4 address)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:309
|
||||||
|
msgid "AAAA (IPv6 address)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:329
|
||||||
|
msgid "domain"
|
||||||
|
msgstr "domini"
|
||||||
|
|
||||||
|
#: models.py:330
|
||||||
|
msgid "TTL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:331
|
||||||
|
#, python-format
|
||||||
|
msgid "Record TTL, defaults to %s"
|
||||||
|
msgstr "Registre TTL, per defecte a %s"
|
||||||
|
|
||||||
|
#: models.py:333
|
||||||
|
msgid "type"
|
||||||
|
msgstr "tipus"
|
||||||
|
|
||||||
|
#: models.py:335
|
||||||
|
msgid "value"
|
||||||
|
msgstr "valor"
|
||||||
|
|
||||||
|
#: models.py:336
|
||||||
|
msgid "MX, NS and CNAME records sould end with a dot."
|
||||||
|
msgstr "Els registres de MX, NS i CNAME s'acaben amb un punt."
|
||||||
|
|
||||||
|
#: serializers.py:36
|
||||||
|
msgid "Can not create subdomains of other users domains"
|
||||||
|
msgstr "No es pot crear subdominis d'altres dominis d'usuaris"
|
||||||
|
|
||||||
|
#: templates/admin/domains/domain/change_form.html:11
|
||||||
|
msgid "History"
|
||||||
|
msgstr "Historial"
|
||||||
|
|
||||||
|
#: templates/admin/domains/domain/change_form.html:13
|
||||||
|
msgid "View on site"
|
||||||
|
msgstr "Veure al lloc"
|
||||||
|
|
||||||
|
#: templates/admin/domains/domain/view_zone.html:8
|
||||||
|
msgid "Home"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: validators.py:28
|
||||||
|
msgid "This domain name is not allowed"
|
||||||
|
msgstr "Aquest nom de domini no està permès"
|
||||||
|
|
||||||
|
#: validators.py:37
|
||||||
|
msgid "Not a valid domain name."
|
||||||
|
msgstr "No és un nom de domini vàlid."
|
||||||
|
|
||||||
|
#: validators.py:46
|
||||||
|
#, python-format
|
||||||
|
msgid "%s is not an appropiate zone interval value"
|
||||||
|
msgstr "%s no és un valor d'interval de zona adequat"
|
||||||
|
|
||||||
|
#: validators.py:57
|
||||||
|
msgid ""
|
||||||
|
"Labels must start and end with a letter or digit, and have as interior "
|
||||||
|
"characters only letters, digits, and hyphen."
|
||||||
|
msgstr ""
|
||||||
|
"Les etiquetes han de començar i acabar amb una lletra o dígit i tenir en l'interior"
|
||||||
|
"Només caràcters lletres, dígits i guionet."
|
||||||
|
|
||||||
|
#: validators.py:61
|
||||||
|
msgid "Use a fully expanded domain name ending with a dot."
|
||||||
|
msgstr "Utilitzeu un nom de domini complet amb un punt final."
|
||||||
|
|
||||||
|
#: validators.py:64
|
||||||
|
msgid "Labels must be 63 characters or less."
|
||||||
|
msgstr "Les etiquetes han de tenir 63 caràcters o menys."
|
||||||
|
|
||||||
|
#: validators.py:68
|
||||||
|
msgid ""
|
||||||
|
"MX record format is 'priority domain.' tuple, with priority being a number."
|
||||||
|
msgstr ""
|
||||||
|
"El format de registre MX és 'domini prioritari'. Tuple, amb la prioritat que és un número "
|
||||||
|
|
||||||
|
#: validators.py:83 validators.py:95
|
||||||
|
#, python-format
|
||||||
|
msgid "%s is not an appropiate SRV record value"
|
||||||
|
msgstr "%s no és un valor de registre SRV Apropiat"
|
||||||
|
|
||||||
|
#: validators.py:111
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"%s is not an appropiate CAA record value, sintax: 0-255 issue|issuewild|"
|
||||||
|
"iodef \"domain|mailto:email\""
|
||||||
|
msgstr ""
|
||||||
|
"%s no és un valor de registre CAA adequat, sintaxi: 0-255 issue|issuewild|"
|
||||||
|
"iodef \"domain|mailto:email\""
|
||||||
|
|
||||||
|
#: validators.py:134
|
||||||
|
msgid ""
|
||||||
|
"This record value contains spaces, you must enclose the string in double "
|
||||||
|
"quotes; otherwise, individual words will be separately quoted and break up "
|
||||||
|
"the record into multiple parts."
|
||||||
|
msgstr ""
|
||||||
|
"Aquest valor de registre conté espais, heu d'incloure la cadena ab cometes dobles"
|
||||||
|
"en cas contrari, les paraules individuals es citaran per separat i es trencaran"
|
||||||
|
"El registre en diverses parts"
|
Binary file not shown.
|
@ -0,0 +1,461 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-09-05 10:11+0000\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: actions.py:25
|
||||||
|
#, python-format
|
||||||
|
msgid "%s zone content"
|
||||||
|
msgstr "%s contenido de zona"
|
||||||
|
|
||||||
|
#: actions.py:29 templates/admin/domains/domain/change_form.html:7
|
||||||
|
#: templates/admin/domains/domain/view_zone.html:12
|
||||||
|
msgid "View zone"
|
||||||
|
msgstr "Ver zona"
|
||||||
|
|
||||||
|
#: actions.py:53
|
||||||
|
msgid ""
|
||||||
|
"This subdomain was not explicitly selected but has been automatically added "
|
||||||
|
"to this list."
|
||||||
|
msgstr ""
|
||||||
|
"Este subdominio no fue seleccionado explícitamente, pero se ha agregado automáticamente"
|
||||||
|
"A esta lista"
|
||||||
|
|
||||||
|
#: actions.py:88
|
||||||
|
msgid "Records for one selected domain have been updated."
|
||||||
|
msgstr "Se han actualizado los registros del dominio seleccionado"
|
||||||
|
|
||||||
|
#: actions.py:89
|
||||||
|
#, python-format
|
||||||
|
msgid "Records for %i selected domains have been updated."
|
||||||
|
msgstr "Se han actualizado los registros para los %i dominios seleccionados"
|
||||||
|
|
||||||
|
#: actions.py:96 actions.py:97
|
||||||
|
msgid "Edit records"
|
||||||
|
msgstr "Editar Registros"
|
||||||
|
|
||||||
|
#: actions.py:112
|
||||||
|
msgid "Set SOA on subdomains is not possible."
|
||||||
|
msgstr "No es posible añadir el registro SOA en los subdominios"
|
||||||
|
|
||||||
|
#: actions.py:120
|
||||||
|
#, python-format
|
||||||
|
msgid "SOA set %s"
|
||||||
|
msgstr "Añadir SOA %s"
|
||||||
|
|
||||||
|
#: actions.py:131
|
||||||
|
msgid "SOA record for one domain has been updated."
|
||||||
|
msgstr "Se ha actualizado el registro SOA del dominio"
|
||||||
|
|
||||||
|
#: actions.py:132
|
||||||
|
#, python-format
|
||||||
|
msgid "SOA record for %s domains has been updated."
|
||||||
|
msgstr "Se actualizo el registro SOA para los dominios %s"
|
||||||
|
|
||||||
|
#: actions.py:139 actions.py:152
|
||||||
|
msgid "Set SOA for selected domains"
|
||||||
|
msgstr "Añadir SOA en los dominios seleccionados"
|
||||||
|
|
||||||
|
#: actions.py:141
|
||||||
|
msgid "Set SOA"
|
||||||
|
msgstr "Añadir SOA"
|
||||||
|
|
||||||
|
#: admin.py:28
|
||||||
|
msgid "Extra records"
|
||||||
|
msgstr "Registros extra"
|
||||||
|
|
||||||
|
#: admin.py:36
|
||||||
|
msgid "Subdomains"
|
||||||
|
msgstr "Subdominios"
|
||||||
|
|
||||||
|
#: admin.py:39
|
||||||
|
msgid "Name"
|
||||||
|
msgstr "Nombre"
|
||||||
|
|
||||||
|
#: admin.py:44
|
||||||
|
msgid "Declared records"
|
||||||
|
msgstr "Registros declarados"
|
||||||
|
|
||||||
|
#: admin.py:78 models.py:27
|
||||||
|
msgid "name"
|
||||||
|
msgstr "Nombre"
|
||||||
|
|
||||||
|
#: admin.py:83
|
||||||
|
msgid "Is top"
|
||||||
|
msgstr "Es top level"
|
||||||
|
|
||||||
|
#: admin.py:96
|
||||||
|
msgid "Edit website"
|
||||||
|
msgstr "Editar WebSite"
|
||||||
|
|
||||||
|
#: admin.py:105
|
||||||
|
msgid "Add website"
|
||||||
|
msgstr "Añadir WebSite"
|
||||||
|
|
||||||
|
#: admin.py:107
|
||||||
|
#, python-format
|
||||||
|
msgid "No website %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:110
|
||||||
|
msgid "Websites"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:119
|
||||||
|
msgid "Add address"
|
||||||
|
msgstr "Añadir dirección"
|
||||||
|
|
||||||
|
#: admin.py:127
|
||||||
|
#, python-format
|
||||||
|
msgid "No address %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:129
|
||||||
|
msgid "Addresses"
|
||||||
|
msgstr "Direcciones"
|
||||||
|
|
||||||
|
#: admin.py:151 admin.py:158
|
||||||
|
msgid "Implicit records"
|
||||||
|
msgstr "Registros implicitos"
|
||||||
|
|
||||||
|
#: admin.py:165
|
||||||
|
msgid "SOA"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:168
|
||||||
|
msgid ""
|
||||||
|
"SOA (Start of Authority) records are used to determine how the zone "
|
||||||
|
"propagates to the secondary nameservers."
|
||||||
|
msgstr ""
|
||||||
|
"Los registros SOA (inicio de la autoridad) se utilizan para determinar cómo la zona"
|
||||||
|
"Se propaga a los servidores de nombres secundarios"
|
||||||
|
|
||||||
|
#: backends.py:22
|
||||||
|
msgid "Bind9 master domain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:184
|
||||||
|
msgid "Bind9 slave domain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:7
|
||||||
|
msgid "top domains"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:12
|
||||||
|
msgid "Top domains"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:22
|
||||||
|
msgid "has websites"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:27
|
||||||
|
msgid "True"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:28
|
||||||
|
msgid "False"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:41
|
||||||
|
msgid "has addresses"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:14
|
||||||
|
msgid "Names"
|
||||||
|
msgstr "Nombres"
|
||||||
|
|
||||||
|
#: forms.py:15
|
||||||
|
msgid ""
|
||||||
|
"Fully qualified domain name per line. All domains will have the provided "
|
||||||
|
"account and records."
|
||||||
|
msgstr ""
|
||||||
|
"Nombre de dominio totalmente calificado por línea. Todos los dominios tendrán los proporcionados"
|
||||||
|
"Cuenta y registros"
|
||||||
|
|
||||||
|
#: forms.py:29
|
||||||
|
#, python-format
|
||||||
|
msgid "%s domain name provided multiple times."
|
||||||
|
msgstr "%s Nombre de dominio proporcionado varias veces."
|
||||||
|
|
||||||
|
#: forms.py:65
|
||||||
|
msgid "An account should be provided for top domain names."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:72
|
||||||
|
msgid "Provided domain names belong to different accounts."
|
||||||
|
msgstr "Los nombres de dominio proporcionados pertenecen a diferentes cuentas"
|
||||||
|
|
||||||
|
#: forms.py:118
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"%s: Hosts can not have underscore character '_', consider providing a SRV, "
|
||||||
|
"CNAME or TXT record."
|
||||||
|
msgstr ""
|
||||||
|
"%s: los hosts no pueden tener un carácter subrayado '_', considere proporcionar un SRV, "
|
||||||
|
"Registro CNAME o TXT."
|
||||||
|
|
||||||
|
#: forms.py:142
|
||||||
|
msgid "Clear refresh"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:143
|
||||||
|
msgid "Remove custom refresh value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:145
|
||||||
|
msgid "Clear retry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:146
|
||||||
|
msgid "Remove custom retry value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:148
|
||||||
|
msgid "Clear expire"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:149
|
||||||
|
msgid "Remove custom expire value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:151
|
||||||
|
msgid "Clear min TTL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:152
|
||||||
|
msgid "Remove custom min TTL value for all selected domains."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:28
|
||||||
|
msgid "Domain or subdomain name."
|
||||||
|
msgstr "Dominio o Subdominio"
|
||||||
|
|
||||||
|
#: models.py:33
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Cuenta"
|
||||||
|
|
||||||
|
#: models.py:34
|
||||||
|
msgid "Automatically selected for subdomains."
|
||||||
|
msgstr "Seleccionado automáticamente para subdominios"
|
||||||
|
|
||||||
|
#: models.py:36
|
||||||
|
msgid "top domain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:37
|
||||||
|
msgid "serial"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:38
|
||||||
|
msgid "A revision number that changes whenever this domain is updated."
|
||||||
|
msgstr "Un número de revisión que cambia cada vez que se actualiza este dominio"
|
||||||
|
|
||||||
|
#: models.py:39
|
||||||
|
msgid "refresh"
|
||||||
|
msgstr "actualizar"
|
||||||
|
|
||||||
|
#: models.py:41
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The time a secondary DNS server waits before querying the primary DNS "
|
||||||
|
"server's SOA record to check for changes. When the refresh time expires, the "
|
||||||
|
"secondary DNS server requests a copy of the current SOA record from the "
|
||||||
|
"primary. The primary DNS server complies with this request. The secondary "
|
||||||
|
"DNS server compares the serial number of the primary DNS server's current "
|
||||||
|
"SOA record and the serial number in it's own SOA record. If they are "
|
||||||
|
"different, the secondary DNS server will request a zone transfer from the "
|
||||||
|
"primary DNS server. The default value is <tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"La hora en que un servidor DNS secundario espera antes de consultar el DNS primario"
|
||||||
|
"El registro SOA del servidor para verificar los cambios. Cuando la tiempo de actualización expira,"
|
||||||
|
"El servidor DNS secundario solicita una copia del registro SOA actual del"
|
||||||
|
"Primario. El servidor DNS principal cumple con esta solicitud. El secundario"
|
||||||
|
"El servidor DNS compara el número de serie del servidor DNS principal actual"
|
||||||
|
"SOA Record y el número de serie en su propio registro SOA. Si lo son"
|
||||||
|
"Diferente, el servidor DNS secundario solicitará una transferencia de zona del"
|
||||||
|
"Servidor DNS primario. El valor predeterminado es <tt>%s</tt>"
|
||||||
|
|
||||||
|
#: models.py:50
|
||||||
|
msgid "retry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:52
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The time a secondary server waits before retrying a failed zone transfer. "
|
||||||
|
"Normally, the retry time is less than the refresh time. The default value is "
|
||||||
|
"<tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"El tiempo en que un servidor secundario espera antes de volver a intentar una transferencia de zona fallida"
|
||||||
|
"Normalmente, el tiempo de reintento es menor que el tiempo de actualización. El valor predeterminado es"
|
||||||
|
"<Tt>%s</tt>"
|
||||||
|
|
||||||
|
#: models.py:55
|
||||||
|
msgid "expire"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:57
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The time that a secondary server will keep trying to complete a zone "
|
||||||
|
"transfer. If this time expires prior to a successful zone transfer, the "
|
||||||
|
"secondary server will expire its zone file. This means the secondary will "
|
||||||
|
"stop answering queries. The default value is <tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"El momento en que un servidor secundario seguirá intentando completar una zona"
|
||||||
|
"Transferencia. Si este tiempo expira antes de una transferencia de zona exitosa,"
|
||||||
|
"El servidor secundario caducará su archivo de zona. Esto significa que el secundario lo hará"
|
||||||
|
"Deje de responder consultas. El valor predeterminado es <tt>%s</tt>"
|
||||||
|
|
||||||
|
#: models.py:62
|
||||||
|
msgid "min TTL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:64
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The minimum time-to-live value applies to all resource records in the zone "
|
||||||
|
"file. This value is supplied in query responses to inform other servers how "
|
||||||
|
"long they should keep the data in cache. The default value is <tt>%s</tt>."
|
||||||
|
msgstr ""
|
||||||
|
"El valor mínimo de tiempo de vida se aplica a todos los registros de recursos en la zona"
|
||||||
|
"Archivo. Este valor se suministra en las respuestas de consulta para informar a otros servidores cómo"
|
||||||
|
"Durante mucho tiempo deberían mantener los datos en caché. El valor predeterminado es <tt>%s </tt>"
|
||||||
|
|
||||||
|
#: models.py:118
|
||||||
|
msgid "top domain with one subdomain"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:119
|
||||||
|
#, python-format
|
||||||
|
msgid "top domain with %d subdomains"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:121
|
||||||
|
msgid "subdomain"
|
||||||
|
msgstr "Subdominio"
|
||||||
|
|
||||||
|
#: models.py:308
|
||||||
|
msgid "A (IPv4 address)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:309
|
||||||
|
msgid "AAAA (IPv6 address)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:329
|
||||||
|
msgid "domain"
|
||||||
|
msgstr "dominio"
|
||||||
|
|
||||||
|
#: models.py:330
|
||||||
|
msgid "TTL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:331
|
||||||
|
#, python-format
|
||||||
|
msgid "Record TTL, defaults to %s"
|
||||||
|
msgstr "Registro TTL, por defecto %s"
|
||||||
|
|
||||||
|
#: models.py:333
|
||||||
|
msgid "type"
|
||||||
|
msgstr "tipo"
|
||||||
|
|
||||||
|
#: models.py:335
|
||||||
|
msgid "value"
|
||||||
|
msgstr "valor"
|
||||||
|
|
||||||
|
#: models.py:336
|
||||||
|
msgid "MX, NS and CNAME records sould end with a dot."
|
||||||
|
msgstr "Los registros MX, NS and CNAME han de acabar con punto"
|
||||||
|
|
||||||
|
#: serializers.py:36
|
||||||
|
msgid "Can not create subdomains of other users domains"
|
||||||
|
msgstr "No puede crear subdominios de los dominios de otros usuarios"
|
||||||
|
|
||||||
|
#: templates/admin/domains/domain/change_form.html:11
|
||||||
|
msgid "History"
|
||||||
|
msgstr "Historial"
|
||||||
|
|
||||||
|
#: templates/admin/domains/domain/change_form.html:13
|
||||||
|
msgid "View on site"
|
||||||
|
msgstr "Ver en el sitio"
|
||||||
|
|
||||||
|
#: templates/admin/domains/domain/view_zone.html:8
|
||||||
|
msgid "Home"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: validators.py:28
|
||||||
|
msgid "This domain name is not allowed"
|
||||||
|
msgstr "Este nombre de dominio no esta permitido"
|
||||||
|
|
||||||
|
#: validators.py:37
|
||||||
|
msgid "Not a valid domain name."
|
||||||
|
msgstr "No es nombre de dominio valido"
|
||||||
|
|
||||||
|
#: validators.py:46
|
||||||
|
#, python-format
|
||||||
|
msgid "%s is not an appropiate zone interval value"
|
||||||
|
msgstr "%s no es un valor de intervalo de zona apropiado"
|
||||||
|
|
||||||
|
#: validators.py:57
|
||||||
|
msgid ""
|
||||||
|
"Labels must start and end with a letter or digit, and have as interior "
|
||||||
|
"characters only letters, digits, and hyphen."
|
||||||
|
msgstr ""
|
||||||
|
"Las etiquetas deben comenzar y terminar con una letra o dígito, y tener en su interior"
|
||||||
|
"Caracteres solo letras, dígitos y guiones"
|
||||||
|
|
||||||
|
#: validators.py:61
|
||||||
|
msgid "Use a fully expanded domain name ending with a dot."
|
||||||
|
msgstr "Use un nombre de dominio completo que termine con un punto"
|
||||||
|
|
||||||
|
#: validators.py:64
|
||||||
|
msgid "Labels must be 63 characters or less."
|
||||||
|
msgstr "Las etiquetas deben ser de 63 caracteres o menos"
|
||||||
|
|
||||||
|
#: validators.py:68
|
||||||
|
msgid ""
|
||||||
|
"MX record format is 'priority domain.' tuple, with priority being a number."
|
||||||
|
msgstr ""
|
||||||
|
"El formato de registro MX es 'dominio prioritario'. Tuple, con la prioridad siendo un número "
|
||||||
|
|
||||||
|
#: validators.py:83 validators.py:95
|
||||||
|
#, python-format
|
||||||
|
msgid "%s is not an appropiate SRV record value"
|
||||||
|
msgstr "%s no es un valor de SRV apropiado"
|
||||||
|
|
||||||
|
#: validators.py:111
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"%s is not an appropiate CAA record value, sintax: 0-255 issue|issuewild|"
|
||||||
|
"iodef \"domain|mailto:email\""
|
||||||
|
msgstr ""
|
||||||
|
"%s no es un valor de registro de CAA apropiado, sintaxis: 0-255 issue|issuewild|"
|
||||||
|
"iodef \"domain|mailto:email\""
|
||||||
|
|
||||||
|
#: validators.py:134
|
||||||
|
msgid ""
|
||||||
|
"This record value contains spaces, you must enclose the string in double "
|
||||||
|
"quotes; otherwise, individual words will be separately quoted and break up "
|
||||||
|
"the record into multiple parts."
|
||||||
|
msgstr ""
|
||||||
|
"Este valor de registro contiene espacios, debe encerrar la cadena en el doble"
|
||||||
|
"Comillas; de lo contrario, las palabras individuales serán citadas por separado y se romperán"
|
||||||
|
"El registro en múltiples partes"
|
|
@ -1,15 +1,17 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import models, migrations
|
from django.conf import settings
|
||||||
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import orchestra.contrib.domains.utils
|
import orchestra.contrib.domains.utils
|
||||||
import orchestra.contrib.domains.validators
|
import orchestra.contrib.domains.validators
|
||||||
from django.conf import settings
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||||
]
|
]
|
||||||
|
@ -18,21 +20,61 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Domain',
|
name='Domain',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('name', models.CharField(unique=True, max_length=256, validators=[orchestra.contrib.domains.validators.validate_domain_name, orchestra.contrib.domains.validators.validate_allowed_domain], verbose_name='name', help_text='Domain or subdomain name.')),
|
('name', models.CharField(help_text='Domain or subdomain name.', max_length=256, unique=True, validators=[orchestra.contrib.domains.validators.validate_domain_name, orchestra.contrib.domains.validators.validate_allowed_domain], verbose_name='name')),
|
||||||
('serial', models.IntegerField(default=orchestra.contrib.domains.utils.generate_zone_serial, verbose_name='serial', help_text='Serial number')),
|
('serial', models.IntegerField(default=orchestra.contrib.domains.utils.generate_zone_serial, help_text='Serial number', verbose_name='serial')),
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='domains', help_text='Automatically selected for subdomains.', to=settings.AUTH_USER_MODEL, verbose_name='Account', blank=True)),
|
('account', models.ForeignKey(blank=True, help_text='Automatically selected for subdomains.', on_delete=django.db.models.deletion.CASCADE, related_name='domains', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
||||||
('top', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, null=True, to='domains.Domain', editable=False, related_name='subdomain_set')),
|
('top', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subdomain_set', to='domains.Domain')),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Record',
|
name='Record',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('ttl', models.CharField(help_text='Record TTL, defaults to 1h', max_length=8, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='TTL', blank=True)),
|
('ttl', models.CharField(blank=True, help_text='Record TTL, defaults to 1h', max_length=8, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='TTL')),
|
||||||
('type', models.CharField(max_length=32, verbose_name='type', choices=[('MX', 'MX'), ('NS', 'NS'), ('CNAME', 'CNAME'), ('A', 'A (IPv4 address)'), ('AAAA', 'AAAA (IPv6 address)'), ('SRV', 'SRV'), ('TXT', 'TXT'), ('SOA', 'SOA')])),
|
('type', models.CharField(choices=[('MX', 'MX'), ('NS', 'NS'), ('CNAME', 'CNAME'), ('A', 'A (IPv4 address)'), ('AAAA', 'AAAA (IPv6 address)'), ('SRV', 'SRV'), ('TXT', 'TXT'), ('SPF', 'SPF')], max_length=32, verbose_name='type')),
|
||||||
('value', models.CharField(max_length=256, verbose_name='value')),
|
('value', models.CharField(help_text='MX, NS and CNAME records sould end with a dot.', max_length=1024, verbose_name='value')),
|
||||||
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='records', to='domains.Domain', verbose_name='domain')),
|
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='records', to='domains.Domain', verbose_name='domain')),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='domain',
|
||||||
|
name='serial',
|
||||||
|
field=models.IntegerField(default=orchestra.contrib.domains.utils.generate_zone_serial, editable=False, help_text='A revision number that changes whenever this domain is updated.', verbose_name='serial'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='domain',
|
||||||
|
name='expire',
|
||||||
|
field=models.CharField(blank=True, help_text='The time that a secondary server will keep trying to complete a zone transfer. If this time expires prior to a successful zone transfer, the secondary server will expire its zone file. This means the secondary will stop answering queries. The default value is <tt>4w</tt>.', max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='expire'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='domain',
|
||||||
|
name='min_ttl',
|
||||||
|
field=models.CharField(blank=True, help_text='The minimum time-to-live value applies to all resource records in the zone file. This value is supplied in query responses to inform other servers how long they should keep the data in cache. The default value is <tt>1h</tt>.', max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='min TTL'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='domain',
|
||||||
|
name='refresh',
|
||||||
|
field=models.CharField(blank=True, help_text="The time a secondary DNS server waits before querying the primary DNS server's SOA record to check for changes. When the refresh time expires, the secondary DNS server requests a copy of the current SOA record from the primary. The primary DNS server complies with this request. The secondary DNS server compares the serial number of the primary DNS server's current SOA record and the serial number in it's own SOA record. If they are different, the secondary DNS server will request a zone transfer from the primary DNS server. The default value is <tt>1d</tt>.", max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='refresh'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='domain',
|
||||||
|
name='retry',
|
||||||
|
field=models.CharField(blank=True, help_text='The time a secondary server waits before retrying a failed zone transfer. Normally, the retry time is less than the refresh time. The default value is <tt>2h</tt>.', max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='retry'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='domain',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(db_index=True, help_text='Domain or subdomain name.', max_length=256, unique=True, validators=[orchestra.contrib.domains.validators.validate_domain_name, orchestra.contrib.domains.validators.validate_allowed_domain], verbose_name='name'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='domain',
|
||||||
|
name='top',
|
||||||
|
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subdomain_set', to='domains.Domain', verbose_name='top domain'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='domain',
|
||||||
|
name='dns2136_address_match_list',
|
||||||
|
field=models.CharField(blank=True, default='key pangea.key;', help_text="A bind-9 'address_match_list' that will be granted permission to perform dns2136 updates. Chiefly used to enable Let's Encrypt self-service validation.", max_length=80),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,83 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
import orchestra.contrib.domains.utils
|
|
||||||
import orchestra.contrib.domains.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
replaces = [('domains', '0001_initial'), ('domains', '0002_auto_20150715_1017'), ('domains', '0003_auto_20150720_1121'), ('domains', '0004_auto_20150720_1121'), ('domains', '0005_auto_20160219_1034'), ('domains', '0006_auto_20170528_2011'), ('domains', '0007_auto_20190805_1134'), ('domains', '0008_domain_dns2136_address_match_list'), ('domains', '0009_auto_20200204_1217'), ('domains', '0010_auto_20210330_1049')]
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Domain',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(help_text='Domain or subdomain name.', max_length=256, unique=True, validators=[orchestra.contrib.domains.validators.validate_domain_name, orchestra.contrib.domains.validators.validate_allowed_domain], verbose_name='name')),
|
|
||||||
('serial', models.IntegerField(default=orchestra.contrib.domains.utils.generate_zone_serial, help_text='Serial number', verbose_name='serial')),
|
|
||||||
('account', models.ForeignKey(blank=True, help_text='Automatically selected for subdomains.', on_delete=django.db.models.deletion.CASCADE, related_name='domains', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
|
||||||
('top', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subdomain_set', to='domains.Domain')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Record',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('ttl', models.CharField(blank=True, help_text='Record TTL, defaults to 1h', max_length=8, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='TTL')),
|
|
||||||
('type', models.CharField(choices=[('MX', 'MX'), ('NS', 'NS'), ('CNAME', 'CNAME'), ('A', 'A (IPv4 address)'), ('AAAA', 'AAAA (IPv6 address)'), ('SRV', 'SRV'), ('TXT', 'TXT'), ('SPF', 'SPF')], max_length=32, verbose_name='type')),
|
|
||||||
('value', models.CharField(help_text='MX, NS and CNAME records sould end with a dot.', max_length=1024, verbose_name='value')),
|
|
||||||
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='records', to='domains.Domain', verbose_name='domain')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='serial',
|
|
||||||
field=models.IntegerField(default=orchestra.contrib.domains.utils.generate_zone_serial, editable=False, help_text='A revision number that changes whenever this domain is updated.', verbose_name='serial'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='expire',
|
|
||||||
field=models.CharField(blank=True, help_text='The time that a secondary server will keep trying to complete a zone transfer. If this time expires prior to a successful zone transfer, the secondary server will expire its zone file. This means the secondary will stop answering queries. The default value is <tt>4w</tt>.', max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='expire'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='min_ttl',
|
|
||||||
field=models.CharField(blank=True, help_text='The minimum time-to-live value applies to all resource records in the zone file. This value is supplied in query responses to inform other servers how long they should keep the data in cache. The default value is <tt>1h</tt>.', max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='min TTL'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='refresh',
|
|
||||||
field=models.CharField(blank=True, help_text="The time a secondary DNS server waits before querying the primary DNS server's SOA record to check for changes. When the refresh time expires, the secondary DNS server requests a copy of the current SOA record from the primary. The primary DNS server complies with this request. The secondary DNS server compares the serial number of the primary DNS server's current SOA record and the serial number in it's own SOA record. If they are different, the secondary DNS server will request a zone transfer from the primary DNS server. The default value is <tt>1d</tt>.", max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='refresh'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='retry',
|
|
||||||
field=models.CharField(blank=True, help_text='The time a secondary server waits before retrying a failed zone transfer. Normally, the retry time is less than the refresh time. The default value is <tt>2h</tt>.', max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='retry'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(db_index=True, help_text='Domain or subdomain name.', max_length=256, unique=True, validators=[orchestra.contrib.domains.validators.validate_domain_name, orchestra.contrib.domains.validators.validate_allowed_domain], verbose_name='name'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='top',
|
|
||||||
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subdomain_set', to='domains.Domain', verbose_name='top domain'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='dns2136_address_match_list',
|
|
||||||
field=models.CharField(blank=True, default='key pangea.key;', help_text="A bind-9 'address_match_list' that will be granted permission to perform dns2136 updates. Chiefly used to enable Let's Encrypt self-service validation.", max_length=80),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,39 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='expire',
|
|
||||||
field=models.IntegerField(null=True, blank=True, help_text='The upper limit in seconds before a zone is considered no longer authoritative (4w by default).', verbose_name='expire'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='min_ttl',
|
|
||||||
field=models.IntegerField(null=True, blank=True, help_text='The negative result TTL (for example, how long a resolver should consider a negative result for a subdomain to be valid before retrying) (1h by default).', verbose_name='refresh'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='refresh',
|
|
||||||
field=models.IntegerField(null=True, blank=True, help_text='The number of seconds before the zone should be refreshed (1d by default).', verbose_name='refresh'),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='retry',
|
|
||||||
field=models.IntegerField(null=True, blank=True, help_text='The number of seconds before a failed refresh should be retried (2h by default).', verbose_name='retry'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='record',
|
|
||||||
name='value',
|
|
||||||
field=models.CharField(max_length=256, help_text='MX, NS and CNAME records sould end with a dot.', verbose_name='value'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,6 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# Generated by Django 2.2.24 on 2024-07-11 12:25
|
||||||
# Generated by Django 1.10.5 on 2017-05-28 18:11
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import orchestra.contrib.domains.validators
|
import orchestra.contrib.domains.validators
|
||||||
|
@ -9,7 +7,7 @@ import orchestra.contrib.domains.validators
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('domains', '0005_auto_20160219_1034'),
|
('domains', '0001_initial'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
@ -26,6 +24,6 @@ class Migration(migrations.Migration):
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='record',
|
model_name='record',
|
||||||
name='type',
|
name='type',
|
||||||
field=models.CharField(choices=[('MX', 'MX'), ('NS', 'NS'), ('CNAME', 'CNAME'), ('A', 'A (IPv4 address)'), ('AAAA', 'AAAA (IPv6 address)'), ('SRV', 'SRV'), ('TXT', 'TXT'), ('SPF', 'SPF')], max_length=32, verbose_name='type'),
|
field=models.CharField(choices=[('MX', 'MX'), ('NS', 'NS'), ('CNAME', 'CNAME'), ('A', 'A (IPv4 address)'), ('AAAA', 'AAAA (IPv6 address)'), ('SRV', 'SRV'), ('TXT', 'TXT'), ('SPF', 'SPF'), ('CAA', 'CAA')], max_length=32, verbose_name='type'),
|
||||||
),
|
),
|
||||||
]
|
]
|
|
@ -1,36 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
import orchestra.contrib.domains.utils
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0002_auto_20150715_1017'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='domain',
|
|
||||||
name='expire',
|
|
||||||
),
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='domain',
|
|
||||||
name='min_ttl',
|
|
||||||
),
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='domain',
|
|
||||||
name='refresh',
|
|
||||||
),
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='domain',
|
|
||||||
name='retry',
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='serial',
|
|
||||||
field=models.IntegerField(editable=False, verbose_name='serial', default=orchestra.contrib.domains.utils.generate_zone_serial, help_text='A revision number that changes whenever this domain is updated.'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,35 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
import orchestra.contrib.domains.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0003_auto_20150720_1121'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='expire',
|
|
||||||
field=models.CharField(validators=[orchestra.contrib.domains.validators.validate_zone_interval], blank=True, help_text='The time that a secondary server will keep trying to complete a zone transfer. If this time expires prior to a successful zone transfer, the secondary server will expire its zone file. This means the secondary will stop answering queries. The default value is <tt>4w</tt>.', verbose_name='expire', max_length=16),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='min_ttl',
|
|
||||||
field=models.CharField(validators=[orchestra.contrib.domains.validators.validate_zone_interval], blank=True, help_text='The minimum time-to-live value applies to all resource records in the zone file. This value is supplied in query responses to inform other servers how long they should keep the data in cache. The default value is <tt>1h</tt>.', verbose_name='min TTL', max_length=16),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='refresh',
|
|
||||||
field=models.CharField(validators=[orchestra.contrib.domains.validators.validate_zone_interval], blank=True, help_text="The time a secondary DNS server waits before querying the primary DNS server's SOA record to check for changes. When the refresh time expires, the secondary DNS server requests a copy of the current SOA record from the primary. The primary DNS server complies with this request. The secondary DNS server compares the serial number of the primary DNS server's current SOA record and the serial number in it's own SOA record. If they are different, the secondary DNS server will request a zone transfer from the primary DNS server. The default value is <tt>1d</tt>.", verbose_name='refresh', max_length=16),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='retry',
|
|
||||||
field=models.CharField(validators=[orchestra.contrib.domains.validators.validate_zone_interval], blank=True, help_text='The time a secondary server waits before retrying a failed zone transfer. Normally, the retry time is less than the refresh time. The default value is <tt>2h</tt>.', verbose_name='retry', max_length=16),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,31 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
import orchestra.contrib.domains.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0004_auto_20150720_1121'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(max_length=256, validators=[orchestra.contrib.domains.validators.validate_domain_name, orchestra.contrib.domains.validators.validate_allowed_domain], db_index=True, verbose_name='name', unique=True, help_text='Domain or subdomain name.'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='top',
|
|
||||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, editable=False, verbose_name='top domain', related_name='subdomain_set', to='domains.Domain', null=True),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='record',
|
|
||||||
name='type',
|
|
||||||
field=models.CharField(max_length=32, verbose_name='type', choices=[('MX', 'MX'), ('NS', 'NS'), ('CNAME', 'CNAME'), ('A', 'A (IPv4 address)'), ('AAAA', 'AAAA (IPv6 address)'), ('SRV', 'SRV'), ('TXT', 'TXT'), ('SPF', 'SPF'), ('SOA', 'SOA')]),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,20 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2019-08-05 09:34
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0006_auto_20170528_2011'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='record',
|
|
||||||
name='value',
|
|
||||||
field=models.CharField(help_text='MX, NS and CNAME records sould end with a dot.', max_length=1024, verbose_name='value'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,20 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2019-09-20 07:21
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0007_auto_20190805_1134'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='domain',
|
|
||||||
name='dns2136_address_match_list',
|
|
||||||
field=models.CharField(blank=True, default='none;', help_text="A bind-9 'address_match_list' that will be granted permission to perform dns2136 updates. Chiefly used to enable Let's Encrypt self-service validation.", max_length=80),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,20 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2020-02-04 11:17
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0008_domain_dns2136_address_match_list'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='dns2136_address_match_list',
|
|
||||||
field=models.CharField(blank=True, default='key pangea.key;', help_text="A bind-9 'address_match_list' that will be granted permission to perform dns2136 updates. Chiefly used to enable Let's Encrypt self-service validation.", max_length=80),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,26 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-03-30 10:49
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import orchestra.contrib.domains.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0009_auto_20200204_1217'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='domain',
|
|
||||||
name='min_ttl',
|
|
||||||
field=models.CharField(blank=True, help_text='The minimum time-to-live value applies to all resource records in the zone file. This value is supplied in query responses to inform other servers how long they should keep the data in cache. The default value is <tt>1h</tt>.', max_length=16, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='min TTL'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='record',
|
|
||||||
name='ttl',
|
|
||||||
field=models.CharField(blank=True, help_text='Record TTL, defaults to 1h', max_length=8, validators=[orchestra.contrib.domains.validators.validate_zone_interval], verbose_name='TTL'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -145,8 +145,9 @@ class Domain(models.Model):
|
||||||
else:
|
else:
|
||||||
zone += subdomain.render_records()
|
zone += subdomain.render_records()
|
||||||
###darmengo 2021-03-25 add autoconfig
|
###darmengo 2021-03-25 add autoconfig
|
||||||
|
# TODO: que se asigne esta ip automaticamente
|
||||||
if self.has_default_mx():
|
if self.has_default_mx():
|
||||||
zone += 'autoconfig.{}. 30m IN A 109.69.8.133\n'.format(self.name)
|
zone += 'autoconfig.{}. 30m IN A 45.150.186.197\n'.format(self.name)
|
||||||
###END darmengo 2021-03-25 add autoconfig
|
###END darmengo 2021-03-25 add autoconfig
|
||||||
for subdomain in sorted(tail, key=lambda x: len(x.name), reverse=True):
|
for subdomain in sorted(tail, key=lambda x: len(x.name), reverse=True):
|
||||||
zone += subdomain.render_records()
|
zone += subdomain.render_records()
|
||||||
|
@ -298,6 +299,7 @@ class Record(models.Model):
|
||||||
TXT = 'TXT'
|
TXT = 'TXT'
|
||||||
SPF = 'SPF'
|
SPF = 'SPF'
|
||||||
SOA = 'SOA'
|
SOA = 'SOA'
|
||||||
|
CAA = 'CAA'
|
||||||
|
|
||||||
TYPE_CHOICES = (
|
TYPE_CHOICES = (
|
||||||
(MX, "MX"),
|
(MX, "MX"),
|
||||||
|
@ -308,6 +310,7 @@ class Record(models.Model):
|
||||||
(SRV, "SRV"),
|
(SRV, "SRV"),
|
||||||
(TXT, "TXT"),
|
(TXT, "TXT"),
|
||||||
(SPF, "SPF"),
|
(SPF, "SPF"),
|
||||||
|
(CAA, "CAA"),
|
||||||
)
|
)
|
||||||
|
|
||||||
VALIDATORS = {
|
VALIDATORS = {
|
||||||
|
@ -320,6 +323,7 @@ class Record(models.Model):
|
||||||
SPF: (validate_ascii, validators.validate_quoted_record),
|
SPF: (validate_ascii, validators.validate_quoted_record),
|
||||||
SRV: (validators.validate_srv_record,),
|
SRV: (validators.validate_srv_record,),
|
||||||
SOA: (validators.validate_soa_record,),
|
SOA: (validators.validate_soa_record,),
|
||||||
|
CAA: (validators.validate_caa_record,),
|
||||||
}
|
}
|
||||||
|
|
||||||
domain = models.ForeignKey(Domain, verbose_name=_("domain"), related_name='records', on_delete=models.CASCADE)
|
domain = models.ForeignKey(Domain, verbose_name=_("domain"), related_name='records', on_delete=models.CASCADE)
|
||||||
|
|
|
@ -53,7 +53,7 @@ def validate_zone_label(value):
|
||||||
Labels may not be all numbers, but may have a leading digit (e.g., 3com.com).
|
Labels may not be all numbers, but may have a leading digit (e.g., 3com.com).
|
||||||
Labels must end and begin only with a letter or digit. See [RFC 1035] and [RFC 1123].
|
Labels must end and begin only with a letter or digit. See [RFC 1035] and [RFC 1123].
|
||||||
"""
|
"""
|
||||||
if not re.match(r'^[a-z0-9][\.\-0-9a-z]*[\.0-9a-z]$', value):
|
if not re.match(r'^[a-z0-9][\.\-0-9a-z_]*[\.0-9a-z]$', value):
|
||||||
msg = _("Labels must start and end with a letter or digit, "
|
msg = _("Labels must start and end with a letter or digit, "
|
||||||
"and have as interior characters only letters, digits, and hyphen.")
|
"and have as interior characters only letters, digits, and hyphen.")
|
||||||
raise ValidationError(msg)
|
raise ValidationError(msg)
|
||||||
|
@ -105,6 +105,28 @@ def validate_soa_record(value):
|
||||||
raise ValidationError(msg)
|
raise ValidationError(msg)
|
||||||
|
|
||||||
|
|
||||||
|
def validate_caa_record(value):
|
||||||
|
# 0-255 issue|issuewild|iodef "domain|mailto:email"
|
||||||
|
# 0 issue "letsewncript.org"
|
||||||
|
msg = _("%s is not an appropiate CAA record value, sintax: 0-255 issue|issuewild|iodef \"domain|mailto:email\"") % value
|
||||||
|
values = value.split()
|
||||||
|
if len(values) != 3:
|
||||||
|
raise ValidationError(msg)
|
||||||
|
|
||||||
|
patron_flag = r'^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'
|
||||||
|
patron_tag = r'^(issue|issuewild|iodef)$'
|
||||||
|
patron_value_domain = r'^"[a-zA-Z0-9-.]+\.[a-zA-Z]+\.?"$'
|
||||||
|
patron_value_mailto = r'^"mailto:[a-zA-Z0-9.]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"$'
|
||||||
|
flag = re.match(patron_flag, values[0])
|
||||||
|
tag = re.match(patron_tag, values[1])
|
||||||
|
if values[1] == 'iodef':
|
||||||
|
valor = re.match(patron_value_mailto, values[2])
|
||||||
|
else:
|
||||||
|
valor = re.match(patron_value_domain, values[2])
|
||||||
|
if not (flag and tag and valor):
|
||||||
|
raise ValidationError(msg)
|
||||||
|
|
||||||
|
|
||||||
def validate_quoted_record(value):
|
def validate_quoted_record(value):
|
||||||
value = value.strip()
|
value = value.strip()
|
||||||
if ' ' in value and (value[0] != '"' or value[-1] != '"'):
|
if ' ' in value and (value[0] != '"' or value[-1] != '"'):
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
BBBB BBBB BBBBBBBBBB
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBBBBBBBBB
|
||||||
|
BBBBBBBB
|
||||||
|
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBB
|
||||||
|
BB BBBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXX
|
||||||
|
XX XXXXXXBBB BBBBBBBBBBBBBXX gettext(u'Home') XXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFFFFFFFFFFFXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXX gettext(u'History') XXXX
|
||||||
|
XXXXXXXX gettext(u'Edit')
|
||||||
|
XXXXXX
|
||||||
|
BBBB
|
||||||
|
|
||||||
|
BBBBB
|
||||||
|
BBBBBBBB
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
BBBBBBB BBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
BBBB BBBB BBBBBBBBBB BBBBBB
|
||||||
|
|
||||||
|
BBBBB BBBBBBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXXXX
|
||||||
|
XX XXXXXXBBB BBBBBBBBBBBBBXX gettext(u'Home') XXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXX
|
||||||
|
XXXXXXXX XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBXXFFFFFFFFFFFFFFFFFFXXXX
|
||||||
|
XXXXXXXX gettext(u'History')
|
||||||
|
XXXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
||||||
|
BBBBB BBBBBBB
|
||||||
|
XXXX XXXXXXXXXXXXXXXXXX
|
||||||
|
XXXX XXXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
BB BBBBBBBBBBB
|
||||||
|
XXXXXX XXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXX
|
||||||
|
XXXX
|
||||||
|
XXX XXXXXXXXXXXX gettext(u'Date/time') XXXXX
|
||||||
|
XXX XXXXXXXXXXXX gettext(u'User') XXXXX
|
||||||
|
XXX XXXXXXXXXXXX gettext(u'Action') XXXXX
|
||||||
|
XXXXX
|
||||||
|
XXXXXXXX
|
||||||
|
XXXXXXX
|
||||||
|
BBB BBBBBB BB BBBBBBBBBBB
|
||||||
|
XXXX
|
||||||
|
XXX XXXXXXXXXXXXFFFFFFFFFFFFFFFFFFFFFFXXXXX
|
||||||
|
XXXXBB BBBBBBBBBBBBBBBBBBBBBBBBB XXBBBBBXXXXX
|
||||||
|
XXXXBB BBBBBBBBBBBBBBBBBB BBB BBB BBBBBBBBBBBBBBBBBBBBB gettext(u'Added') BBBBBBBBB XX XXXXXXBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX XXXXXBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXX
|
||||||
|
BBBBBB
|
||||||
|
XXXXXXXX
|
||||||
|
XXXXXXXX
|
||||||
|
BBBB
|
||||||
|
XXX gettext(u"This object doesn't have a change history. It probably wasn't added via this admin site.") XXXX
|
||||||
|
BBBBB
|
||||||
|
XXXXXX
|
||||||
|
XXXXXX
|
||||||
|
BBBBBBBB
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import django.db.models.deletion
|
import datetime
|
||||||
from django.db import models, migrations
|
|
||||||
import orchestra.models.fields
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
from django.utils.timezone import utc
|
||||||
|
import orchestra.models.fields
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
@ -17,7 +20,7 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Message',
|
name='Message',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('author_name', models.CharField(blank=True, max_length=256, verbose_name='author name')),
|
('author_name', models.CharField(blank=True, max_length=256, verbose_name='author name')),
|
||||||
('content', models.TextField(verbose_name='content')),
|
('content', models.TextField(verbose_name='content')),
|
||||||
('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
|
('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
|
||||||
|
@ -30,28 +33,28 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Queue',
|
name='Queue',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('name', models.CharField(max_length=128, verbose_name='name', unique=True)),
|
('name', models.CharField(max_length=128, unique=True, verbose_name='name')),
|
||||||
('verbose_name', models.CharField(blank=True, max_length=128, verbose_name='verbose_name')),
|
('verbose_name', models.CharField(blank=True, max_length=128, verbose_name='verbose_name')),
|
||||||
('default', models.BooleanField(verbose_name='default', default=False)),
|
('default', models.BooleanField(default=False, verbose_name='default')),
|
||||||
('notify', orchestra.models.fields.MultiSelectField(blank=True, max_length=256, help_text='Contacts to notify by email', verbose_name='notify', default=('SUPPORT', 'ADMIN', 'BILLING', 'TECH', 'ADDS', 'EMERGENCY'), choices=[('SUPPORT', 'Support tickets'), ('ADMIN', 'Administrative'), ('BILLING', 'Billing'), ('TECH', 'Technical'), ('ADDS', 'Announcements'), ('EMERGENCY', 'Emergency contact')])),
|
('notify', orchestra.models.fields.MultiSelectField(blank=True, choices=[('SUPPORT', 'Support tickets'), ('ADMIN', 'Administrative'), ('BILLING', 'Billing'), ('TECH', 'Technical'), ('ADDS', 'Announcements'), ('EMERGENCY', 'Emergency contact')], default=('SUPPORT', 'ADMIN', 'BILLING', 'TECH', 'ADDS', 'EMERGENCY'), help_text='Contacts to notify by email', max_length=256, verbose_name='notify')),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Ticket',
|
name='Ticket',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('creator_name', models.CharField(blank=True, max_length=256, verbose_name='creator name')),
|
('creator_name', models.CharField(blank=True, max_length=256, verbose_name='creator name')),
|
||||||
('subject', models.CharField(max_length=256, verbose_name='subject')),
|
('subject', models.CharField(max_length=256, verbose_name='subject')),
|
||||||
('description', models.TextField(verbose_name='description')),
|
('description', models.TextField(verbose_name='description')),
|
||||||
('priority', models.CharField(max_length=32, default='MEDIUM', verbose_name='priority', choices=[('HIGH', 'High'), ('MEDIUM', 'Medium'), ('LOW', 'Low')])),
|
('priority', models.CharField(choices=[('HIGH', 'High'), ('MEDIUM', 'Medium'), ('LOW', 'Low')], default='MEDIUM', max_length=32, verbose_name='priority')),
|
||||||
('state', models.CharField(max_length=32, default='NEW', verbose_name='state', choices=[('NEW', 'New'), ('IN_PROGRESS', 'In Progress'), ('RESOLVED', 'Resolved'), ('FEEDBACK', 'Feedback'), ('REJECTED', 'Rejected'), ('CLOSED', 'Closed')])),
|
('state', models.CharField(choices=[('NEW', 'New'), ('IN_PROGRESS', 'In Progress'), ('RESOLVED', 'Resolved'), ('FEEDBACK', 'Feedback'), ('REJECTED', 'Rejected'), ('CLOSED', 'Closed')], default='NEW', max_length=32, verbose_name='state')),
|
||||||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created')),
|
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created')),
|
||||||
('updated_at', models.DateTimeField(auto_now=True, verbose_name='modified')),
|
('updated_at', models.DateTimeField(auto_now=True, verbose_name='modified')),
|
||||||
('cc', models.TextField(blank=True, help_text='emails to send a carbon copy to', verbose_name='CC')),
|
('cc', models.TextField(blank=True, help_text='emails to send a carbon copy to', verbose_name='CC')),
|
||||||
('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tickets_created', null=True, to=settings.AUTH_USER_MODEL, verbose_name='created by')),
|
('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tickets_created', to=settings.AUTH_USER_MODEL, verbose_name='created by')),
|
||||||
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, blank=True, related_name='tickets_owned', null=True, to=settings.AUTH_USER_MODEL, verbose_name='assigned to')),
|
('owner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tickets_owned', to=settings.AUTH_USER_MODEL, verbose_name='assigned to')),
|
||||||
('queue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, blank=True, related_name='tickets', null=True, to='issues.Queue')),
|
('queue', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tickets', to='issues.Queue')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'ordering': ['-updated_at'],
|
'ordering': ['-updated_at'],
|
||||||
|
@ -60,7 +63,7 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='TicketTracker',
|
name='TicketTracker',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('ticket', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='trackers', to='issues.Ticket', verbose_name='ticket')),
|
('ticket', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='trackers', to='issues.Ticket', verbose_name='ticket')),
|
||||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ticket_trackers', to=settings.AUTH_USER_MODEL, verbose_name='user')),
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ticket_trackers', to=settings.AUTH_USER_MODEL, verbose_name='user')),
|
||||||
],
|
],
|
||||||
|
@ -74,4 +77,34 @@ class Migration(migrations.Migration):
|
||||||
name='tickettracker',
|
name='tickettracker',
|
||||||
unique_together=set([('ticket', 'user')]),
|
unique_together=set([('ticket', 'user')]),
|
||||||
),
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='ticket',
|
||||||
|
name='created_at',
|
||||||
|
field=models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='created'),
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='message',
|
||||||
|
name='created_on',
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='message',
|
||||||
|
name='created_at',
|
||||||
|
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(2016, 3, 20, 10, 27, 45, 766388, tzinfo=utc), verbose_name='created at'),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='ticket',
|
||||||
|
name='creator',
|
||||||
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets_created', to=settings.AUTH_USER_MODEL, verbose_name='created by'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='ticket',
|
||||||
|
name='owner',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets_owned', to=settings.AUTH_USER_MODEL, verbose_name='assigned to'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='ticket',
|
||||||
|
name='queue',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets', to='issues.Queue'),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,114 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import datetime
|
|
||||||
from django.conf import settings
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
from django.utils.timezone import utc
|
|
||||||
import orchestra.models.fields
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
replaces = [('issues', '0001_initial'), ('issues', '0002_auto_20150709_1018'), ('issues', '0003_auto_20160320_1127'), ('issues', '0004_auto_20170528_2011')]
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Message',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('author_name', models.CharField(blank=True, max_length=256, verbose_name='author name')),
|
|
||||||
('content', models.TextField(verbose_name='content')),
|
|
||||||
('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
|
|
||||||
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ticket_messages', to=settings.AUTH_USER_MODEL, verbose_name='author')),
|
|
||||||
],
|
|
||||||
options={
|
|
||||||
'get_latest_by': 'id',
|
|
||||||
},
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Queue',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(max_length=128, unique=True, verbose_name='name')),
|
|
||||||
('verbose_name', models.CharField(blank=True, max_length=128, verbose_name='verbose_name')),
|
|
||||||
('default', models.BooleanField(default=False, verbose_name='default')),
|
|
||||||
('notify', orchestra.models.fields.MultiSelectField(blank=True, choices=[('SUPPORT', 'Support tickets'), ('ADMIN', 'Administrative'), ('BILLING', 'Billing'), ('TECH', 'Technical'), ('ADDS', 'Announcements'), ('EMERGENCY', 'Emergency contact')], default=('SUPPORT', 'ADMIN', 'BILLING', 'TECH', 'ADDS', 'EMERGENCY'), help_text='Contacts to notify by email', max_length=256, verbose_name='notify')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Ticket',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('creator_name', models.CharField(blank=True, max_length=256, verbose_name='creator name')),
|
|
||||||
('subject', models.CharField(max_length=256, verbose_name='subject')),
|
|
||||||
('description', models.TextField(verbose_name='description')),
|
|
||||||
('priority', models.CharField(choices=[('HIGH', 'High'), ('MEDIUM', 'Medium'), ('LOW', 'Low')], default='MEDIUM', max_length=32, verbose_name='priority')),
|
|
||||||
('state', models.CharField(choices=[('NEW', 'New'), ('IN_PROGRESS', 'In Progress'), ('RESOLVED', 'Resolved'), ('FEEDBACK', 'Feedback'), ('REJECTED', 'Rejected'), ('CLOSED', 'Closed')], default='NEW', max_length=32, verbose_name='state')),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created')),
|
|
||||||
('updated_at', models.DateTimeField(auto_now=True, verbose_name='modified')),
|
|
||||||
('cc', models.TextField(blank=True, help_text='emails to send a carbon copy to', verbose_name='CC')),
|
|
||||||
('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tickets_created', to=settings.AUTH_USER_MODEL, verbose_name='created by')),
|
|
||||||
('owner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tickets_owned', to=settings.AUTH_USER_MODEL, verbose_name='assigned to')),
|
|
||||||
('queue', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tickets', to='issues.Queue')),
|
|
||||||
],
|
|
||||||
options={
|
|
||||||
'ordering': ['-updated_at'],
|
|
||||||
},
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='TicketTracker',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('ticket', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='trackers', to='issues.Ticket', verbose_name='ticket')),
|
|
||||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ticket_trackers', to=settings.AUTH_USER_MODEL, verbose_name='user')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='message',
|
|
||||||
name='ticket',
|
|
||||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='issues.Ticket', verbose_name='ticket'),
|
|
||||||
),
|
|
||||||
migrations.AlterUniqueTogether(
|
|
||||||
name='tickettracker',
|
|
||||||
unique_together=set([('ticket', 'user')]),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='created_at',
|
|
||||||
field=models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='created'),
|
|
||||||
),
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='message',
|
|
||||||
name='created_on',
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='message',
|
|
||||||
name='created_at',
|
|
||||||
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(2016, 3, 20, 10, 27, 45, 766388, tzinfo=utc), verbose_name='created at'),
|
|
||||||
preserve_default=False,
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='creator',
|
|
||||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets_created', to=settings.AUTH_USER_MODEL, verbose_name='created by'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='owner',
|
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets_owned', to=settings.AUTH_USER_MODEL, verbose_name='assigned to'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='queue',
|
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets', to='issues.Queue'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,19 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('issues', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='created_at',
|
|
||||||
field=models.DateTimeField(db_index=True, auto_now_add=True, verbose_name='created'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,26 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import datetime
|
|
||||||
from django.utils.timezone import utc
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('issues', '0002_auto_20150709_1018'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='message',
|
|
||||||
name='created_on',
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='message',
|
|
||||||
name='created_at',
|
|
||||||
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(2016, 3, 20, 10, 27, 45, 766388, tzinfo=utc), verbose_name='created at'),
|
|
||||||
preserve_default=False,
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,32 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2017-05-28 18:11
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('issues', '0003_auto_20160320_1127'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='creator',
|
|
||||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets_created', to=settings.AUTH_USER_MODEL, verbose_name='created by'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='owner',
|
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets_owned', to=settings.AUTH_USER_MODEL, verbose_name='assigned to'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='ticket',
|
|
||||||
name='queue',
|
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tickets', to='issues.Queue'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
XXXXXXXXX XXXX XXXXXX XXXXXXXXXXXX XXXXX XXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXX
|
||||||
|
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXX XX
|
||||||
|
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX XX
|
||||||
|
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXX XXXXXXXXXXXXXXXX
|
||||||
|
XX X XXXXXXXXXXXX XXXXXXXX XXXXXXXXXXX XXXXXXXXXX XXXXX XXXXXXXXXXX XXXXXXX XXXXXX XXXXX X
|
||||||
|
XXXX X XXXXXXXXXXXX XXXXXXXX XXXXXXXXXXX XXXXXXXXXX XXXXX XXXXXX XXXXX X
|
||||||
|
XXXXX XX X XXXXXXXXXXXX XXXX X
|
||||||
|
XXXXX XX X XXXXXXXXXXXXXXX XXXX XXXXXXXXXXXXXXXXX XXXXXXXX XXXXXXX XXXX XXXXXXXXXXXXXXX XXXXXXXX
|
||||||
|
XXXXX XX XXXX X XXXXXXXXXX XXXXXX X
|
||||||
|
XXXXX XX XX X XXXXXXXXXX XXXXXX XXXXXXXXXXX XXXXX X
|
||||||
|
XXXXX XX XX X XXXXXXXXXX XXXXXX XXXXXXXXXXX XXXXX X
|
||||||
|
XXXXX XX XX X XXXXXXXXXX XXXXXX XXXXXXXXXXX XXXXX X
|
||||||
|
XXXXX XX XXXX X XXXXXXXXXXXXXXXXX XXXX XXXXXXXXXXXXXXX XXXX X
|
||||||
|
|
||||||
|
XXXXXXXX
|
||||||
|
XXXXXXX
|
||||||
|
XXXXXX
|
||||||
|
|
||||||
|
XXXXXXXXXXXX XXXXXX XXXXX XXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
XXXXXX XXXXXXXXXXXXX
|
||||||
|
XXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X XX XXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
XXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXXX X XXXX XXXX X XX XXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXX XXXXXXXX XXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXXXX XX XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXX XXXXXXXXXX XXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX XXXX XXXXXXXX XXXXXXXXXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
|
||||||
|
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXX XXXX XXXX XXX XXXX XXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXX XXXXX X XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXX XXXXX XXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX
|
||||||
|
XXXXXXXX
|
||||||
|
|
||||||
|
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
XXXX XXXXXXXXX XX XXXXXXXX XXXXXXXXXXX
|
||||||
|
XXXX
|
||||||
|
|
||||||
|
XXXXXXX
|
||||||
|
XXXXXXX
|
|
@ -57,6 +57,14 @@ class MailmanVirtualDomainController(ServiceController):
|
||||||
def commit(self):
|
def commit(self):
|
||||||
context = self.get_context_files()
|
context = self.get_context_files()
|
||||||
super(MailmanVirtualDomainController, self).commit()
|
super(MailmanVirtualDomainController, self).commit()
|
||||||
|
self.append(textwrap.dedent("""
|
||||||
|
# Apply changes if needed
|
||||||
|
if [[ $UPDATED_VIRTUAL_ALIAS_DOMAINS == 1 ]]; then
|
||||||
|
postmap %(virtual_alias_domains)s
|
||||||
|
systemctl reload postfix
|
||||||
|
fi
|
||||||
|
exit $exit_code""") % context
|
||||||
|
)
|
||||||
|
|
||||||
def get_context_files(self):
|
def get_context_files(self):
|
||||||
return {
|
return {
|
||||||
|
@ -101,7 +109,7 @@ class MailmanController(MailmanVirtualDomainController):
|
||||||
for suffix in self.address_suffixes:
|
for suffix in self.address_suffixes:
|
||||||
context['suffix'] = suffix
|
context['suffix'] = suffix
|
||||||
# Because mailman doesn't properly handle lists aliases we need virtual aliases
|
# Because mailman doesn't properly handle lists aliases we need virtual aliases
|
||||||
if context['address_name'] != context['name']:
|
if context['address_name'] != context['name'] or context['address_domain'] != settings.LISTS_DEFAULT_DOMAIN:
|
||||||
aliases.append("%(address_name)s%(suffix)s@%(domain)s\t%(name)s%(suffix)s@grups.pangea.org" % context)
|
aliases.append("%(address_name)s%(suffix)s@%(domain)s\t%(name)s%(suffix)s@grups.pangea.org" % context)
|
||||||
return '\n'.join(aliases)
|
return '\n'.join(aliases)
|
||||||
|
|
||||||
|
@ -165,7 +173,18 @@ class MailmanController(MailmanVirtualDomainController):
|
||||||
|
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
pass
|
context = self.get_context_files()
|
||||||
|
self.append(textwrap.dedent("""
|
||||||
|
# Apply changes if needed
|
||||||
|
if [[ $UPDATED_VIRTUAL_ALIAS == 1 ]]; then
|
||||||
|
postmap %(virtual_alias)s
|
||||||
|
fi
|
||||||
|
if [[ $UPDATED_VIRTUAL_ALIAS_DOMAINS == 1 ]]; then
|
||||||
|
systemctl reload postfix
|
||||||
|
fi
|
||||||
|
exit $exit_code""") % context
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_context_files(self):
|
def get_context_files(self):
|
||||||
return {
|
return {
|
||||||
|
@ -199,7 +218,7 @@ class MailmanTraffic(ServiceMonitor):
|
||||||
model = 'lists.List'
|
model = 'lists.List'
|
||||||
resource = ServiceMonitor.TRAFFIC
|
resource = ServiceMonitor.TRAFFIC
|
||||||
verbose_name = _("Mailman traffic")
|
verbose_name = _("Mailman traffic")
|
||||||
script_executable = '/usr/bin/python'
|
script_executable = '/usr/bin/python3'
|
||||||
monthly_sum_old_values = True
|
monthly_sum_old_values = True
|
||||||
doc_settings = (settings,
|
doc_settings = (settings,
|
||||||
('LISTS_MAILMAN_POST_LOG_PATH',)
|
('LISTS_MAILMAN_POST_LOG_PATH',)
|
||||||
|
@ -210,9 +229,10 @@ class MailmanTraffic(ServiceMonitor):
|
||||||
context = {
|
context = {
|
||||||
'postlogs': str((postlog, postlog+'.1')),
|
'postlogs': str((postlog, postlog+'.1')),
|
||||||
'current_date': self.current_date.strftime("%Y-%m-%d %H:%M:%S %Z"),
|
'current_date': self.current_date.strftime("%Y-%m-%d %H:%M:%S %Z"),
|
||||||
|
'default_domain': settings.LISTS_DEFAULT_DOMAIN,
|
||||||
}
|
}
|
||||||
|
|
||||||
self.append(textwrap.dedent("""\
|
self.append(textwrap.dedent("""\
|
||||||
import re
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -243,7 +263,6 @@ class MailmanTraffic(ServiceMonitor):
|
||||||
'Nov': '11',
|
'Nov': '11',
|
||||||
'Dec': '12',
|
'Dec': '12',
|
||||||
}}
|
}}
|
||||||
mailman_addr = re.compile(r'.*-(admin|bounces|confirm|join|leave|owner|request|subscribe|unsubscribe)@.*|mailman@.*')
|
|
||||||
|
|
||||||
def prepare(object_id, list_name, ini_date):
|
def prepare(object_id, list_name, ini_date):
|
||||||
global lists
|
global lists
|
||||||
|
@ -255,39 +274,33 @@ class MailmanTraffic(ServiceMonitor):
|
||||||
for postlog in postlogs:
|
for postlog in postlogs:
|
||||||
try:
|
try:
|
||||||
with open(postlog, 'r') as postlog:
|
with open(postlog, 'r') as postlog:
|
||||||
|
recps_dict = {{}}
|
||||||
for line in postlog.readlines():
|
for line in postlog.readlines():
|
||||||
line = line.split()
|
line = line.split()
|
||||||
if len(line) < 11:
|
if 'recips,' in line:
|
||||||
|
__, __, __, __, __, id, __, __, list_name, __, recps = line[:11]
|
||||||
|
recps_dict[id] = recps
|
||||||
continue
|
continue
|
||||||
month, day, time, year, __, __, __, list_name, __, addr, size = line[:11]
|
if not 'bytes' in line:
|
||||||
|
continue
|
||||||
|
month, day, time, year, __, __, __, __, list_name, __, addr, size = line[:12]
|
||||||
try:
|
try:
|
||||||
|
list_name = list_name.split('@')[0]
|
||||||
list = lists[list_name]
|
list = lists[list_name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# discard mailman messages because of inconsistent POST logging
|
|
||||||
if mailman_addr.match(addr):
|
|
||||||
continue
|
|
||||||
date = year + months[month] + day + time.replace(':', '')
|
date = year + months[month] + day + time.replace(':', '')
|
||||||
if list[0] < int(date) < end_date:
|
if list[0] < int(date) < end_date:
|
||||||
size = size[5:-1]
|
if id in recps_dict:
|
||||||
try:
|
list[2] += int(size) * int(recps_dict[id])
|
||||||
list[2] += int(size)
|
|
||||||
except ValueError:
|
|
||||||
# anonymized post
|
|
||||||
pass
|
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
sys.stderr.write(str(e)+'\\n')
|
sys.stderr.write(str(e)+'\\n')
|
||||||
|
|
||||||
for list_name, opts in lists.items():
|
for list_name, opts in lists.items():
|
||||||
__, object_id, size = opts
|
__, object_id, size = opts
|
||||||
if size:
|
print(object_id, size)
|
||||||
cmd = ' '.join(('list_members', list_name, '| wc -l'))
|
|
||||||
ps = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
||||||
subscribers = ps.communicate()[0].strip()
|
|
||||||
size *= int(subscribers)
|
|
||||||
sys.stderr.write("%s %s*%s traffic*subscribers\\n" % (object_id, size, subscribers))
|
|
||||||
print object_id, size
|
|
||||||
""").format(**context)
|
""").format(**context)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,117 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-09-06 10:23+0000\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: admin.py:28 admin.py:42
|
||||||
|
msgid "Address"
|
||||||
|
msgstr "Direccio"
|
||||||
|
|
||||||
|
#: admin.py:32
|
||||||
|
msgid "Admin"
|
||||||
|
msgstr "Administrador"
|
||||||
|
|
||||||
|
#: admin.py:44
|
||||||
|
#, python-format
|
||||||
|
msgid "Additional address besides the default <name>@%s"
|
||||||
|
msgstr "Adreça addicional a més del valor predeterminat <name>@%s"
|
||||||
|
|
||||||
|
#: backends.py:16
|
||||||
|
msgid "Mailman virtdomain-only"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:201
|
||||||
|
msgid "Mailman traffic"
|
||||||
|
msgstr "Trànsit de Mailman"
|
||||||
|
|
||||||
|
#: backends.py:309
|
||||||
|
msgid "Mailman subscribers"
|
||||||
|
msgstr "Subscriptors Mailman"
|
||||||
|
|
||||||
|
#: filters.py:7
|
||||||
|
msgid "has custom address"
|
||||||
|
msgstr "té adreça personalitzada"
|
||||||
|
|
||||||
|
#: filters.py:12
|
||||||
|
msgid "True"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:13
|
||||||
|
msgid "False"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:13
|
||||||
|
msgid "name"
|
||||||
|
msgstr "nom"
|
||||||
|
|
||||||
|
#: models.py:14
|
||||||
|
#, python-format
|
||||||
|
msgid "Default list address <name>@%s"
|
||||||
|
msgstr "Adreça de llista predeterminada <name>@%s"
|
||||||
|
|
||||||
|
#: models.py:15
|
||||||
|
msgid "address name"
|
||||||
|
msgstr "Nom de l'adreça"
|
||||||
|
|
||||||
|
#: models.py:18
|
||||||
|
msgid "address domain"
|
||||||
|
msgstr "Domini adicional"
|
||||||
|
|
||||||
|
#: models.py:19
|
||||||
|
msgid "admin email"
|
||||||
|
msgstr "Correu electrònic d'administració"
|
||||||
|
|
||||||
|
#: models.py:20
|
||||||
|
msgid "Administration email address"
|
||||||
|
msgstr "Adreça de correu electrònic d'administració"
|
||||||
|
|
||||||
|
#: models.py:21
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Compte"
|
||||||
|
|
||||||
|
#: models.py:24
|
||||||
|
msgid "active"
|
||||||
|
msgstr "actiu"
|
||||||
|
|
||||||
|
#: models.py:25
|
||||||
|
msgid ""
|
||||||
|
"Designates whether this account should be treated as active. Unselect this "
|
||||||
|
"instead of deleting accounts."
|
||||||
|
msgstr ""
|
||||||
|
"Designa si aquest compte ha de ser tractat com a actiu. Deselecteu això "
|
||||||
|
"En lloc de suprimir els comptes."
|
||||||
|
|
||||||
|
#: models.py:47
|
||||||
|
msgid "Domain should be selected for provided address name."
|
||||||
|
msgstr "El domini s'ha de seleccionar per al nom de l'adreça proporcionat."
|
||||||
|
|
||||||
|
#: serializers.py:20
|
||||||
|
msgid "Password"
|
||||||
|
msgstr "Contrasenya"
|
||||||
|
|
||||||
|
#: serializers.py:25
|
||||||
|
msgid ""
|
||||||
|
"Enter a valid password. This value may contain any ascii character except "
|
||||||
|
"for '/\"/\\/ characters."
|
||||||
|
msgstr ""
|
||||||
|
"Introduïu una contrasenya vàlida. Aquest valor pot contenir qualsevol personatge ASCII excepte"
|
||||||
|
"Per a '/\"/\\/caràcters. "
|
||||||
|
|
||||||
|
#: serializers.py:43
|
||||||
|
msgid "address_domains should should be provided when providing an addres_name"
|
||||||
|
msgstr "S'hauria de proporcionar address_domains en proporcionar un address_name"
|
Binary file not shown.
|
@ -0,0 +1,117 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-09-06 10:03+0000\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: admin.py:28 admin.py:42
|
||||||
|
msgid "Address"
|
||||||
|
msgstr "Dirección"
|
||||||
|
|
||||||
|
#: admin.py:32
|
||||||
|
msgid "Admin"
|
||||||
|
msgstr "Administrador"
|
||||||
|
|
||||||
|
#: admin.py:44
|
||||||
|
#, python-format
|
||||||
|
msgid "Additional address besides the default <name>@%s"
|
||||||
|
msgstr "Dirección adicional además del valor predeterminado <name>@%s"
|
||||||
|
|
||||||
|
#: backends.py:16
|
||||||
|
msgid "Mailman virtdomain-only"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:201
|
||||||
|
msgid "Mailman traffic"
|
||||||
|
msgstr "Tráfico Mailman"
|
||||||
|
|
||||||
|
#: backends.py:309
|
||||||
|
msgid "Mailman subscribers"
|
||||||
|
msgstr "Subscriptores Mailman"
|
||||||
|
|
||||||
|
#: filters.py:7
|
||||||
|
msgid "has custom address"
|
||||||
|
msgstr "tiene dirección personalizada"
|
||||||
|
|
||||||
|
#: filters.py:12
|
||||||
|
msgid "True"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:13
|
||||||
|
msgid "False"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:13
|
||||||
|
msgid "name"
|
||||||
|
msgstr "nombre"
|
||||||
|
|
||||||
|
#: models.py:14
|
||||||
|
#, python-format
|
||||||
|
msgid "Default list address <name>@%s"
|
||||||
|
msgstr "dirección de lista por defecto <name>@%s"
|
||||||
|
|
||||||
|
#: models.py:15
|
||||||
|
msgid "address name"
|
||||||
|
msgstr "nombre de dirección"
|
||||||
|
|
||||||
|
#: models.py:18
|
||||||
|
msgid "address domain"
|
||||||
|
msgstr "dominio adicional"
|
||||||
|
|
||||||
|
#: models.py:19
|
||||||
|
msgid "admin email"
|
||||||
|
msgstr "correo administrador"
|
||||||
|
|
||||||
|
#: models.py:20
|
||||||
|
msgid "Administration email address"
|
||||||
|
msgstr "dirección correo administrador"
|
||||||
|
|
||||||
|
#: models.py:21
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Cuenta"
|
||||||
|
|
||||||
|
#: models.py:24
|
||||||
|
msgid "active"
|
||||||
|
msgstr "activo"
|
||||||
|
|
||||||
|
#: models.py:25
|
||||||
|
msgid ""
|
||||||
|
"Designates whether this account should be treated as active. Unselect this "
|
||||||
|
"instead of deleting accounts."
|
||||||
|
msgstr ""
|
||||||
|
"Designa si esta cuenta debe tratarse como activa. Deseleccionar esto "
|
||||||
|
"En lugar de eliminar cuentas."
|
||||||
|
|
||||||
|
#: models.py:47
|
||||||
|
msgid "Domain should be selected for provided address name."
|
||||||
|
msgstr "El dominio debe seleccionarse para el nombre de la dirección proporcionado."
|
||||||
|
|
||||||
|
#: serializers.py:20
|
||||||
|
msgid "Password"
|
||||||
|
msgstr "Contraseña"
|
||||||
|
|
||||||
|
#: serializers.py:25
|
||||||
|
msgid ""
|
||||||
|
"Enter a valid password. This value may contain any ascii character except "
|
||||||
|
"for '/\"/\\/ characters."
|
||||||
|
msgstr ""
|
||||||
|
"Ingrese una contraseña válida. Este valor puede contener cualquier carácter ASCII excepto"
|
||||||
|
"Para '/\"/\\/caracteres."
|
||||||
|
|
||||||
|
#: serializers.py:43
|
||||||
|
msgid "address_domains should should be provided when providing an addres_name"
|
||||||
|
msgstr "address_domains debe proporcionarse al proporcionar un addres_name"
|
|
@ -1,4 +1,6 @@
|
||||||
# Generated by Django 2.2.28 on 2023-09-01 14:59
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -8,10 +10,8 @@ import orchestra.core.validators
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('domains', '__first__'),
|
('domains', '0001_initial'),
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -20,15 +20,46 @@ class Migration(migrations.Migration):
|
||||||
name='List',
|
name='List',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('name', models.CharField(help_text='Default list address <name>@grups.pangea.org', max_length=64, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name')),
|
('name', models.CharField(help_text='Default list address <name>@lists.orchestra.lan', max_length=128, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name')),
|
||||||
('address_name', models.CharField(blank=True, max_length=64, validators=[orchestra.core.validators.validate_name], verbose_name='address name')),
|
('address_name', models.CharField(blank=True, max_length=128, validators=[orchestra.core.validators.validate_name], verbose_name='address name')),
|
||||||
('admin_email', models.EmailField(help_text='Administration email address', max_length=254, verbose_name='admin email')),
|
('admin_email', models.EmailField(help_text='Administration email address', max_length=254, verbose_name='admin email')),
|
||||||
('is_active', models.BooleanField(default=True, help_text='Designates whether this account should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
|
('is_active', models.BooleanField(default=True, help_text='Designates whether this account should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lists', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lists', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
||||||
('address_domain', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='domains.Domain', verbose_name='address domain')),
|
('address_domain', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='domains.Domain', verbose_name='address domain')),
|
||||||
],
|
],
|
||||||
options={
|
),
|
||||||
'unique_together': {('address_name', 'address_domain')},
|
migrations.AlterUniqueTogether(
|
||||||
},
|
name='list',
|
||||||
|
unique_together=set([('address_name', 'address_domain')]),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='list',
|
||||||
|
name='address_domain',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='domains.Domain', verbose_name='address domain'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='list',
|
||||||
|
name='address_name',
|
||||||
|
field=models.CharField(blank=True, max_length=52, validators=[orchestra.core.validators.validate_name], verbose_name='address name'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='list',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(help_text='Default list address <name>@grups.pangea.org', max_length=52, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='list',
|
||||||
|
name='address_name',
|
||||||
|
field=models.CharField(blank=True, max_length=64, validators=[orchestra.core.validators.validate_name], verbose_name='address name'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='list',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(help_text='Default list address <name>@grups.pangea.org', max_length=64, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='list',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(help_text='Default list address <name>@lists.orchestra.lan', max_length=64, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
import orchestra.core.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
replaces = [('lists', '0001_initial'), ('lists', '0002_auto_20160912_1221'), ('lists', '0003_auto_20160912_1241'), ('lists', '0004_auto_20210330_1049')]
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0001_initial'),
|
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='List',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(help_text='Default list address <name>@lists.orchestra.lan', max_length=128, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name')),
|
|
||||||
('address_name', models.CharField(blank=True, max_length=128, validators=[orchestra.core.validators.validate_name], verbose_name='address name')),
|
|
||||||
('admin_email', models.EmailField(help_text='Administration email address', max_length=254, verbose_name='admin email')),
|
|
||||||
('is_active', models.BooleanField(default=True, help_text='Designates whether this account should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
|
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lists', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
|
||||||
('address_domain', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='domains.Domain', verbose_name='address domain')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.AlterUniqueTogether(
|
|
||||||
name='list',
|
|
||||||
unique_together=set([('address_name', 'address_domain')]),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='address_domain',
|
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='domains.Domain', verbose_name='address domain'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='address_name',
|
|
||||||
field=models.CharField(blank=True, max_length=52, validators=[orchestra.core.validators.validate_name], verbose_name='address name'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(help_text='Default list address <name>@grups.pangea.org', max_length=52, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='address_name',
|
|
||||||
field=models.CharField(blank=True, max_length=64, validators=[orchestra.core.validators.validate_name], verbose_name='address name'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(help_text='Default list address <name>@grups.pangea.org', max_length=64, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(help_text='Default list address <name>@lists.orchestra.lan', max_length=64, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,32 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.9.5 on 2016-09-12 10:21
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
import orchestra.core.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('lists', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='address_domain',
|
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='domains.Domain', verbose_name='address domain'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='address_name',
|
|
||||||
field=models.CharField(blank=True, max_length=52, validators=[orchestra.core.validators.validate_name], verbose_name='address name'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(help_text='Default list address <name>@grups.pangea.org', max_length=52, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,6 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# Generated by Django 2.2.24 on 2024-07-11 12:25
|
||||||
# Generated by Django 1.9.5 on 2016-09-12 10:41
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import orchestra.core.validators
|
import orchestra.core.validators
|
||||||
|
@ -9,15 +7,10 @@ import orchestra.core.validators
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('lists', '0002_auto_20160912_1221'),
|
('lists', '0001_initial'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='address_name',
|
|
||||||
field=models.CharField(blank=True, max_length=64, validators=[orchestra.core.validators.validate_name], verbose_name='address name'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='list',
|
model_name='list',
|
||||||
name='name',
|
name='name',
|
|
@ -1,21 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-03-30 10:49
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import orchestra.core.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('lists', '0003_auto_20160912_1241'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='list',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(help_text='Default list address <name>@lists.orchestra.lan', max_length=64, unique=True, validators=[orchestra.core.validators.validate_name], verbose_name='name'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -47,7 +47,7 @@ class MailboxAdmin(ChangePasswordAdminMixin, SelectAccountAdminMixin, ExtendedMo
|
||||||
)
|
)
|
||||||
add_fieldsets = (
|
add_fieldsets = (
|
||||||
(None, {
|
(None, {
|
||||||
'fields': ('account_link', 'name', 'password1', 'password2', 'filtering'),
|
'fields': ('account_link', 'name', 'password1', 'password2', 'filtering', 'ratelimit'),
|
||||||
}),
|
}),
|
||||||
(_("Custom filtering"), {
|
(_("Custom filtering"), {
|
||||||
'classes': ('collapse',),
|
'classes': ('collapse',),
|
||||||
|
@ -61,7 +61,7 @@ class MailboxAdmin(ChangePasswordAdminMixin, SelectAccountAdminMixin, ExtendedMo
|
||||||
)
|
)
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
(None, {
|
(None, {
|
||||||
'fields': ('name', 'password', 'is_active', 'account_link', 'filtering'),
|
'fields': ('name', 'password', 'is_active', 'account_link', 'filtering', 'ratelimit'),
|
||||||
}),
|
}),
|
||||||
(_("Custom filtering"), {
|
(_("Custom filtering"), {
|
||||||
'classes': ('collapse',),
|
'classes': ('collapse',),
|
||||||
|
|
|
@ -84,6 +84,11 @@ class UNIXUserMaildirController(SieveFilteringMixin, ServiceController):
|
||||||
--home %(home)s \\
|
--home %(home)s \\
|
||||||
--password '%(password)s'
|
--password '%(password)s'
|
||||||
fi
|
fi
|
||||||
|
if [[ "%(is_active)s" == "True" ]]; then
|
||||||
|
usermod --unlock %(user)s
|
||||||
|
else
|
||||||
|
usermod --lock %(user)s
|
||||||
|
fi
|
||||||
mkdir -p %(home)s
|
mkdir -p %(home)s
|
||||||
chmod 751 %(home)s
|
chmod 751 %(home)s
|
||||||
chown %(user)s:%(group)s %(home)s""") % context
|
chown %(user)s:%(group)s %(home)s""") % context
|
||||||
|
@ -146,12 +151,13 @@ class UNIXUserMaildirController(SieveFilteringMixin, ServiceController):
|
||||||
'user': mailbox.name,
|
'user': mailbox.name,
|
||||||
'group': mailbox.name,
|
'group': mailbox.name,
|
||||||
'name': mailbox.name,
|
'name': mailbox.name,
|
||||||
'password': mailbox.password if mailbox.active else '*%s' % mailbox.password,
|
'password': mailbox.password,
|
||||||
'home': mailbox.get_home(),
|
'home': mailbox.get_home(),
|
||||||
'maildir': os.path.join(mailbox.get_home(), 'Maildir'),
|
'maildir': os.path.join(mailbox.get_home(), 'Maildir'),
|
||||||
'initial_shell': self.SHELL,
|
'initial_shell': self.SHELL,
|
||||||
'banner': self.get_banner(),
|
'banner': self.get_banner(),
|
||||||
'changepass': changepass,
|
'changepass': changepass,
|
||||||
|
'is_active': mailbox.active,
|
||||||
}
|
}
|
||||||
context['deleted_home'] = settings.MAILBOXES_MOVE_ON_DELETE_PATH % context
|
context['deleted_home'] = settings.MAILBOXES_MOVE_ON_DELETE_PATH % context
|
||||||
return context
|
return context
|
||||||
|
@ -452,12 +458,30 @@ class DovecotMaildirDisk(ServiceMonitor):
|
||||||
self.append(textwrap.dedent("""\
|
self.append(textwrap.dedent("""\
|
||||||
function monitor () {
|
function monitor () {
|
||||||
SIZE=$(du -sb $1/Maildir/ 2> /dev/null || echo 0) && echo $SIZE | awk '{print $1}'
|
SIZE=$(du -sb $1/Maildir/ 2> /dev/null || echo 0) && echo $SIZE | awk '{print $1}'
|
||||||
|
list=()
|
||||||
}"""))
|
}"""))
|
||||||
|
|
||||||
def monitor(self, mailbox):
|
def monitor(self, mailbox):
|
||||||
context = self.get_context(mailbox)
|
context = self.get_context(mailbox)
|
||||||
# self.append("echo %(object_id)s $(monitor %(maildir_path)s)" % context)
|
# self.append("echo %(object_id)s $(monitor %(maildir_path)s)" % context)
|
||||||
self.append("echo %(object_id)s $(monitor %(home)s)" % context)
|
# self.append("echo %(object_id)s $(monitor %(home)s)" % context)
|
||||||
|
self.append("list[${#list[@]}]=\'echo %(object_id)s $(monitor %(home)s)\'" % context)
|
||||||
|
|
||||||
|
def commit(self):
|
||||||
|
self.append(textwrap.dedent("""\
|
||||||
|
proces=0
|
||||||
|
for cmd in "${list[@]}"
|
||||||
|
do
|
||||||
|
eval $cmd &
|
||||||
|
proces=$((proces+1))
|
||||||
|
if [ $proces -ge 10 ];then
|
||||||
|
wait
|
||||||
|
proces=0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
wait
|
||||||
|
exit $exit_code
|
||||||
|
"""))
|
||||||
|
|
||||||
def get_context(self, mailbox):
|
def get_context(self, mailbox):
|
||||||
context = {
|
context = {
|
||||||
|
@ -476,7 +500,7 @@ class PostfixMailscannerTraffic(ServiceMonitor):
|
||||||
model = 'mailboxes.Mailbox'
|
model = 'mailboxes.Mailbox'
|
||||||
resource = ServiceMonitor.TRAFFIC
|
resource = ServiceMonitor.TRAFFIC
|
||||||
verbose_name = _("Postfix-Mailscanner traffic")
|
verbose_name = _("Postfix-Mailscanner traffic")
|
||||||
script_executable = '/usr/bin/python'
|
script_executable = '/usr/bin/python3'
|
||||||
monthly_sum_old_values = True
|
monthly_sum_old_values = True
|
||||||
doc_settings = (settings,
|
doc_settings = (settings,
|
||||||
('MAILBOXES_MAIL_LOG_PATH',)
|
('MAILBOXES_MAIL_LOG_PATH',)
|
||||||
|
@ -506,6 +530,10 @@ class PostfixMailscannerTraffic(ServiceMonitor):
|
||||||
end_date = int(end_datetime.strftime('%Y%m%d%H%M%S'))
|
end_date = int(end_datetime.strftime('%Y%m%d%H%M%S'))
|
||||||
months = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')
|
months = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')
|
||||||
months = dict((m, '%02d' % n) for n, m in enumerate(months, 1))
|
months = dict((m, '%02d' % n) for n, m in enumerate(months, 1))
|
||||||
|
users = {{}}
|
||||||
|
sends = {{}}
|
||||||
|
register_imap_traffic = False
|
||||||
|
register_pop_traffic = False
|
||||||
|
|
||||||
def inside_period(month, day, time, ini_date):
|
def inside_period(month, day, time, ini_date):
|
||||||
global months
|
global months
|
||||||
|
@ -521,91 +549,109 @@ class PostfixMailscannerTraffic(ServiceMonitor):
|
||||||
date += time.replace(':', '')
|
date += time.replace(':', '')
|
||||||
return ini_date < int(date) < end_date
|
return ini_date < int(date) < end_date
|
||||||
|
|
||||||
users = {{}}
|
def search_username(pattern, users, line):
|
||||||
delivers = {{}}
|
match = pattern.search(line)
|
||||||
reverse = {{}}
|
if not match:
|
||||||
|
return None
|
||||||
|
username = match.groups(1)[0]
|
||||||
|
if username not in users.keys():
|
||||||
|
return None
|
||||||
|
return username
|
||||||
|
|
||||||
|
def search_size(line, users, username, pattern):
|
||||||
|
month, day, time, req_id = line.split()[:4]
|
||||||
|
if inside_period(month, day, time, users[username][0]):
|
||||||
|
group = req_id.split('<')[-1][:-2]
|
||||||
|
matches = pattern.search(line)
|
||||||
|
if not matches:
|
||||||
|
return None, None
|
||||||
|
return group, matches
|
||||||
|
return None, None
|
||||||
|
|
||||||
def prepare(object_id, mailbox, ini_date):
|
def prepare(object_id, mailbox, ini_date):
|
||||||
global users
|
global users
|
||||||
global delivers
|
global sends
|
||||||
global reverse
|
|
||||||
ini_date = to_local_timezone(ini_date)
|
ini_date = to_local_timezone(ini_date)
|
||||||
ini_date = int(ini_date.strftime('%Y%m%d%H%M%S'))
|
ini_date = int(ini_date.strftime('%Y%m%d%H%M%S'))
|
||||||
users[mailbox] = (ini_date, object_id)
|
users[mailbox] = (ini_date, object_id)
|
||||||
delivers[mailbox] = set()
|
sends[mailbox] = {{}}
|
||||||
reverse[mailbox] = set()
|
|
||||||
|
def monitor(users, sends, maillogs):
|
||||||
|
grupos = []
|
||||||
|
sasl_username_pattern = re.compile(r'sasl_username=([a-zA-Z0-9\.\-_]+)')
|
||||||
|
size_pattern = re.compile(r'size=(\d+),')
|
||||||
|
|
||||||
|
pop_username_pattern = re.compile(r' pop3\(([^)].*)\)')
|
||||||
|
pop_size_pattern = re.compile(r'size=(\d+)')
|
||||||
|
|
||||||
|
imap_username_pattern = re.compile(r' imap\(([^)].*)\)')
|
||||||
|
imap_size_pattern = re.compile(r"in=(\d+) out=(\d+)")
|
||||||
|
|
||||||
def monitor(users, delivers, reverse, maillogs):
|
|
||||||
targets = {{}}
|
|
||||||
counter = {{}}
|
|
||||||
user_regex = re.compile(r'\(Authenticated sender: ([^ ]+)\)')
|
|
||||||
for maillog in maillogs:
|
for maillog in maillogs:
|
||||||
try:
|
try:
|
||||||
with open(maillog, 'r') as maillog:
|
with open(maillog, 'r') as maillog:
|
||||||
for line in maillog.readlines():
|
for line in maillog.readlines():
|
||||||
# Only search for Authenticated sendings
|
# Only search for Authenticated sendings
|
||||||
if '(Authenticated sender: ' in line:
|
if 'sasl_username=' in line:
|
||||||
username = user_regex.search(line).groups()[0]
|
# si el usuario es uno de los elegidos y el rango de tiempo es correcto
|
||||||
try:
|
# recoge el id de grupo
|
||||||
sender = users[username]
|
username = search_username(sasl_username_pattern, users, line)
|
||||||
except KeyError:
|
if username is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
month, day, time, __, __, req_id = line.split()[:6]
|
||||||
|
if inside_period(month, day, time, users[username][0]):
|
||||||
|
group = req_id[:-1]
|
||||||
|
sends[username][group] = 0
|
||||||
|
grupos.append(group)
|
||||||
else:
|
else:
|
||||||
month, day, time, __, proc, id = line.split()[:6]
|
# busca el size de envios donde se alla anadido el groupID anteriormente,
|
||||||
if inside_period(month, day, time, sender[0]):
|
# una vez encontrado borra el groupID
|
||||||
# Add new email
|
for id in grupos:
|
||||||
delivers[id[:-1]] = username
|
if id in line:
|
||||||
# Look for a MailScanner requeue ID
|
match = size_pattern.search(line)
|
||||||
elif ' Requeue: ' in line:
|
if not match:
|
||||||
id, __, req_id = line.split()[6:9]
|
|
||||||
id = id.split('.')[0]
|
|
||||||
try:
|
|
||||||
username = delivers[id]
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
targets[req_id] = (username, 0)
|
|
||||||
reverse[username].add(req_id)
|
|
||||||
# Look for the mail size and count the number of recipients of each email
|
|
||||||
else:
|
|
||||||
try:
|
|
||||||
month, day, time, __, proc, req_id, __, msize = line.split()[:8]
|
|
||||||
except ValueError:
|
|
||||||
# not interested in this line
|
|
||||||
continue
|
continue
|
||||||
if proc.startswith('postfix/'):
|
for k, v in sends.items():
|
||||||
req_id = req_id[:-1]
|
if id in sends[k].keys():
|
||||||
if msize.startswith('size='):
|
sends[k][id] += int(match.groups(1)[0])
|
||||||
try:
|
grupos.remove(id)
|
||||||
target = targets[req_id]
|
|
||||||
except KeyError:
|
# pop trafic
|
||||||
pass
|
if register_pop_traffic:
|
||||||
else:
|
if 'pop3(' in line and 'size' in line:
|
||||||
targets[req_id] = (target[0], int(msize[5:-1]))
|
username = search_username(pop_username_pattern, users, line)
|
||||||
elif proc.startswith('postfix/smtp'):
|
if username is None:
|
||||||
try:
|
continue
|
||||||
target = targets[req_id]
|
group, matches = search_size(line, users, username, pop_size_pattern)
|
||||||
except KeyError:
|
if group is not None and matches is not None :
|
||||||
pass
|
sends[username][group] = int(matches.groups(1)[0])
|
||||||
else:
|
|
||||||
if inside_period(month, day, time, users[target[0]][0]):
|
# imap trafic
|
||||||
try:
|
if register_imap_traffic:
|
||||||
counter[req_id] += 1
|
if 'imap(' in line and 'out=' in line:
|
||||||
except KeyError:
|
username = search_username(imap_username_pattern, users, line)
|
||||||
counter[req_id] = 1
|
if username is None:
|
||||||
|
continue
|
||||||
|
group, matches = search_size(line, users, username, imap_size_pattern)
|
||||||
|
if group is not None and matches is not None :
|
||||||
|
value = int(matches.group(1)) + int(matches.group(2))
|
||||||
|
sends[username][group] = value
|
||||||
|
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
sys.stderr.write(str(e)+'\\n')
|
sys.stderr.write(str(e)+'\\n')
|
||||||
|
|
||||||
for username, opts in users.iteritems():
|
# devolver la sumatoria de valores a orchestra (id_user, size)
|
||||||
size = 0
|
for username, opts in users.items():
|
||||||
for req_id in reverse[username]:
|
total_size = 0
|
||||||
size += targets[req_id][1] * counter.get(req_id, 0)
|
for size in sends[username].values():
|
||||||
print opts[1], size
|
total_size += size
|
||||||
|
print(f"{{opts[1]}} {{total_size}}")
|
||||||
""").format(**context)
|
""").format(**context)
|
||||||
)
|
)
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
self.append('monitor(users, delivers, reverse, maillogs)')
|
self.append('monitor(users, sends, maillogs)')
|
||||||
|
|
||||||
def monitor(self, mailbox):
|
def monitor(self, mailbox):
|
||||||
context = self.get_context(mailbox)
|
context = self.get_context(mailbox)
|
||||||
|
@ -626,3 +672,57 @@ class RoundcubeIdentityController(ServiceController):
|
||||||
verbose_name = _("Roundcube Identity Controller")
|
verbose_name = _("Roundcube Identity Controller")
|
||||||
model = 'mailboxes.Mailbox'
|
model = 'mailboxes.Mailbox'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class RSpamdRatelimitController(ServiceController):
|
||||||
|
"""
|
||||||
|
rspamd ratelimit to user
|
||||||
|
"""
|
||||||
|
|
||||||
|
verbose_name = _("rspamd ratelimit user")
|
||||||
|
model = 'mailboxes.Mailbox'
|
||||||
|
|
||||||
|
def save(self, mailbox):
|
||||||
|
context = self.get_context(mailbox)
|
||||||
|
self.append(textwrap.dedent("""
|
||||||
|
sed -i '/^%(user)s$/d' %(maps)s
|
||||||
|
echo '%(user)s' >> %(path_maps)s%(ratelimit)s.map
|
||||||
|
systemctl reload rspamd.service
|
||||||
|
""") % context
|
||||||
|
)
|
||||||
|
|
||||||
|
def delete(self, mailbox):
|
||||||
|
context = self.get_context(mailbox)
|
||||||
|
self.append(textwrap.dedent("""
|
||||||
|
sed -i '/^%(user)s$/d' %(maps)s
|
||||||
|
systemctl reload rspamd.service
|
||||||
|
""") % context
|
||||||
|
)
|
||||||
|
|
||||||
|
# def commit(self):
|
||||||
|
# self.append('[[ $RELOAD_RSPAMD -eq 1 ]] && systemctl reload rspamd.service')
|
||||||
|
# super().commit()
|
||||||
|
|
||||||
|
def get_context(self, mailbox):
|
||||||
|
maps = self.extract_group_maps()
|
||||||
|
context = {
|
||||||
|
'user': mailbox.name,
|
||||||
|
'ratelimit': mailbox.ratelimit,
|
||||||
|
'maps': maps,
|
||||||
|
'path_maps': settings.MAILBOXES_RATELIMIT_PATH_MAPS,
|
||||||
|
}
|
||||||
|
return context
|
||||||
|
|
||||||
|
def extract_group_maps(self):
|
||||||
|
"""
|
||||||
|
debulve string de todos los ficheros de maps assignados en settings para ratelimit
|
||||||
|
return string
|
||||||
|
"""
|
||||||
|
choice_groups = settings.MAILBOXES_RATELIMIT_GROUP
|
||||||
|
path = settings.MAILBOXES_RATELIMIT_PATH_MAPS
|
||||||
|
group_maps = ''
|
||||||
|
if len(choice_groups) > 0:
|
||||||
|
for choice in choice_groups:
|
||||||
|
group_maps += f"{path}{choice[0]}.map "
|
||||||
|
|
||||||
|
return group_maps
|
|
@ -54,6 +54,11 @@ class MailboxForm(forms.ModelForm):
|
||||||
raise ValidationError("Name length should be less than %i." % max_length)
|
raise ValidationError("Name length should be less than %i." % max_length)
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
def clean_ratelimit(self):
|
||||||
|
ratelimit = self.cleaned_data['ratelimit']
|
||||||
|
if ratelimit is None:
|
||||||
|
ratelimit = settings.MAILBOXES_RATELIMIT_GROUP_DEFAULT
|
||||||
|
return ratelimit
|
||||||
|
|
||||||
class MailboxChangeForm(UserChangeForm, MailboxForm):
|
class MailboxChangeForm(UserChangeForm, MailboxForm):
|
||||||
pass
|
pass
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,298 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-09-06 09:36+0000\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: admin.py:31
|
||||||
|
msgid "autoresponse"
|
||||||
|
msgstr "autoresposta"
|
||||||
|
|
||||||
|
#: admin.py:52 admin.py:66 settings.py:177
|
||||||
|
msgid "Custom filtering"
|
||||||
|
msgstr "Filtre personalitzat"
|
||||||
|
|
||||||
|
#: admin.py:54
|
||||||
|
msgid ""
|
||||||
|
"Please remember to select <tt>custom filtering</tt> if you want this filter "
|
||||||
|
"to be applied."
|
||||||
|
msgstr ""
|
||||||
|
"Recordeu que seleccioneu <tt> Filtratge personalitzat </tt> si voleu aquest filtre"
|
||||||
|
"Per aplicar-se."
|
||||||
|
|
||||||
|
#: admin.py:58 admin.py:70 admin.py:114
|
||||||
|
msgid "Addresses"
|
||||||
|
msgstr "Adreces"
|
||||||
|
|
||||||
|
#: admin.py:122
|
||||||
|
msgid "Forward from"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:127
|
||||||
|
msgid "Filtering"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:181
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"Mailbox '%s' local address matches '%s', please consider if selecting it "
|
||||||
|
"makes sense."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:199
|
||||||
|
#, python-brace-format
|
||||||
|
msgid ""
|
||||||
|
"Address <a href='{url}'>{addr}</a> clashes with '{mailbox}' mailbox local "
|
||||||
|
"address. Consider adding this mailbox to the address."
|
||||||
|
msgstr ""
|
||||||
|
"Adreça <a href='{url}'> {addr} </a> xoca amb '{mailbox}' bustia local"
|
||||||
|
"Adreça. Penseu en afegir aquesta bústia a l'adreça."
|
||||||
|
|
||||||
|
#: admin.py:210
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"You have provided a custom filtering but filtering selected option is %s"
|
||||||
|
msgstr ""
|
||||||
|
"Heu proporcionat un filtratge personalitzat, però l'opció seleccionada per filtrar és %s"
|
||||||
|
|
||||||
|
#: admin.py:246 admin.py:252
|
||||||
|
msgid "Email"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:260
|
||||||
|
msgid "Mailboxes"
|
||||||
|
msgstr "Busties"
|
||||||
|
|
||||||
|
#: admin.py:269
|
||||||
|
msgid "Mailboxes links"
|
||||||
|
msgstr "Links de busties"
|
||||||
|
|
||||||
|
#: admin.py:282
|
||||||
|
msgid "Forward"
|
||||||
|
msgstr "Redireccio"
|
||||||
|
|
||||||
|
#: admin.py:321
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"Address '%s' matches mailbox '%s' local address, please consider if makes "
|
||||||
|
"sense adding the mailbox on the mailboxes or forward field."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:64
|
||||||
|
msgid "UNIX maildir user"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:263
|
||||||
|
msgid "Postfix address virtdomain-only"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:347
|
||||||
|
msgid "Postfix address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:434
|
||||||
|
msgid "Mail autoresponse"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:445
|
||||||
|
msgid "Dovecot Maildir size"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:502
|
||||||
|
msgid "Postfix-Mailscanner traffic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:672
|
||||||
|
msgid "Roundcube Identity Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:682
|
||||||
|
msgid "rspamd ratelimit user"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:9
|
||||||
|
msgid "has mailbox"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:14
|
||||||
|
msgid "True"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:15
|
||||||
|
msgid "False"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:28
|
||||||
|
msgid "has forward"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:41
|
||||||
|
msgid "has address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:53
|
||||||
|
msgid "has type server"
|
||||||
|
msgstr "té un servidor de tipus"
|
||||||
|
|
||||||
|
#: forms.py:20 models.py:115
|
||||||
|
msgid "addresses"
|
||||||
|
msgstr "adreçes"
|
||||||
|
|
||||||
|
#: forms.py:84
|
||||||
|
msgid "Mailboxes or forward address should be provided."
|
||||||
|
msgstr "S'han de proporcionar bústies o adreça de reenviament."
|
||||||
|
|
||||||
|
#: models.py:17 models.py:101
|
||||||
|
msgid "name"
|
||||||
|
msgstr "nom"
|
||||||
|
|
||||||
|
#: models.py:19
|
||||||
|
#, python-format
|
||||||
|
msgid "Required. %s characters or fewer. Letters, digits and ./-/_ only."
|
||||||
|
msgstr "Obligatori. %s caràcters o menys. Cartes, dígits i ./-/_ només."
|
||||||
|
|
||||||
|
#: models.py:22
|
||||||
|
msgid "Enter a valid mailbox name."
|
||||||
|
msgstr "Introduïu un nom de bústia vàlid."
|
||||||
|
|
||||||
|
#: models.py:24
|
||||||
|
msgid "password"
|
||||||
|
msgstr "contrasenya"
|
||||||
|
|
||||||
|
#: models.py:25
|
||||||
|
msgid "account"
|
||||||
|
msgstr "compte"
|
||||||
|
|
||||||
|
#: models.py:30
|
||||||
|
msgid "filtering"
|
||||||
|
msgstr "filtre"
|
||||||
|
|
||||||
|
#: models.py:32
|
||||||
|
msgid ""
|
||||||
|
"Arbitrary email filtering in <a href='https://tty1.net/blog/2011/sieve-"
|
||||||
|
"tutorial_en.html'>sieve language</a>. This overrides any automatic junk "
|
||||||
|
"email filtering"
|
||||||
|
msgstr ""
|
||||||
|
"Filtratge de correu electrònic arbitrari a <a href='https://tty1.net/blog/2011/sieve-"
|
||||||
|
"Tutorial_en.html'> Idioma tamís </a>. Això substitueix qualsevol brossa automàtica"
|
||||||
|
"Filtratge de correu electrònic"
|
||||||
|
|
||||||
|
#: models.py:35
|
||||||
|
msgid "active"
|
||||||
|
msgstr "actiu"
|
||||||
|
|
||||||
|
#: models.py:36
|
||||||
|
msgid "ratelimit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:43 models.py:106
|
||||||
|
msgid "mailboxes"
|
||||||
|
msgstr "busties"
|
||||||
|
|
||||||
|
#: models.py:76
|
||||||
|
msgid "Custom filtering is selected but not provided."
|
||||||
|
msgstr "El filtratge personalitzat està seleccionat però no es proporciona."
|
||||||
|
|
||||||
|
#: models.py:103
|
||||||
|
msgid "Address name, left blank for a <i>catch-all</i> address"
|
||||||
|
msgstr "Nom de l'adreça, deixa en blanc per a una adreça <i>aleatoria</i>"
|
||||||
|
|
||||||
|
#: models.py:105
|
||||||
|
msgid "domain"
|
||||||
|
msgstr "domini"
|
||||||
|
|
||||||
|
#: models.py:108
|
||||||
|
msgid "forward"
|
||||||
|
msgstr "redireccio"
|
||||||
|
|
||||||
|
#: models.py:110
|
||||||
|
msgid "Space separated email addresses or mailboxes"
|
||||||
|
msgstr "Adreces de correu electrònic o bústies de correu electrònic separades per l'espai"
|
||||||
|
|
||||||
|
#: models.py:111
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Compte"
|
||||||
|
|
||||||
|
#: models.py:147
|
||||||
|
#, python-format
|
||||||
|
msgid "Please use mailboxes field for '%s' mailbox."
|
||||||
|
msgstr "Utilitzeu el camp de bústies de correu per la bústia '%s'."
|
||||||
|
|
||||||
|
#: models.py:153
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' forwards to itself."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:175
|
||||||
|
msgid "address"
|
||||||
|
msgstr "direccio"
|
||||||
|
|
||||||
|
#: models.py:178
|
||||||
|
msgid "subject"
|
||||||
|
msgstr "subjecte"
|
||||||
|
|
||||||
|
#: models.py:179
|
||||||
|
msgid "message"
|
||||||
|
msgstr "missatge"
|
||||||
|
|
||||||
|
#: models.py:180
|
||||||
|
msgid "enabled"
|
||||||
|
msgstr "habilitat"
|
||||||
|
|
||||||
|
#: settings.py:25
|
||||||
|
msgid "Limit for system user based mailbox on Linux is 32."
|
||||||
|
msgstr "El límit per a la bústia basada en l'usuari del sistema a Linux és 32."
|
||||||
|
|
||||||
|
#: settings.py:98
|
||||||
|
msgid "Disable"
|
||||||
|
msgstr "deshabilitat"
|
||||||
|
|
||||||
|
#: settings.py:99
|
||||||
|
msgid "Reject spam (Score≥8)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: settings.py:118
|
||||||
|
msgid "Reject spam (Score≥5)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: settings.py:137
|
||||||
|
msgid "Archive spam (Score≥8)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: settings.py:157
|
||||||
|
msgid "Archive spam (Score≥5)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: validators.py:15
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is not a correct email name."
|
||||||
|
msgstr "'%s' no és un nom de correu electrònic correcte."
|
||||||
|
|
||||||
|
#: validators.py:33
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is already present."
|
||||||
|
msgstr "'%s' ja està present."
|
||||||
|
|
||||||
|
#: validators.py:41
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is not a valid email address."
|
||||||
|
msgstr "'%s' no és una adreça de correu electrònic vàlida."
|
||||||
|
|
||||||
|
#: validators.py:45
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is not an existent mailbox."
|
||||||
|
msgstr "'%s' no és una bústia existent."
|
Binary file not shown.
|
@ -0,0 +1,305 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-09-06 09:35+0000\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: admin.py:31
|
||||||
|
msgid "autoresponse"
|
||||||
|
msgstr "autorespuesta"
|
||||||
|
|
||||||
|
#: admin.py:52 admin.py:66 settings.py:177
|
||||||
|
msgid "Custom filtering"
|
||||||
|
msgstr "Filtro personalizado"
|
||||||
|
|
||||||
|
#: admin.py:54
|
||||||
|
msgid ""
|
||||||
|
"Please remember to select <tt>custom filtering</tt> if you want this filter "
|
||||||
|
"to be applied."
|
||||||
|
msgstr ""
|
||||||
|
"Recuerde seleccionar <TT> Filtrado personalizado </tt> Si desea este "
|
||||||
|
"filtroAplicar"
|
||||||
|
|
||||||
|
#: admin.py:58 admin.py:70 admin.py:114
|
||||||
|
msgid "Addresses"
|
||||||
|
msgstr "Direcciones de coreo"
|
||||||
|
|
||||||
|
#: admin.py:122
|
||||||
|
msgid "Forward from"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:127
|
||||||
|
msgid "Filtering"
|
||||||
|
msgstr "Filtración"
|
||||||
|
|
||||||
|
#: admin.py:181
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"Mailbox '%s' local address matches '%s', please consider if selecting it "
|
||||||
|
"makes sense."
|
||||||
|
msgstr ""
|
||||||
|
"Mailbox '%s' coincidencia de dirección local '%s', considere si "
|
||||||
|
"seleccionarloTiene sentido"
|
||||||
|
|
||||||
|
#: admin.py:199
|
||||||
|
#, python-brace-format
|
||||||
|
msgid ""
|
||||||
|
"Address <a href='{url}'>{addr}</a> clashes with '{mailbox}' mailbox local "
|
||||||
|
"address. Consider adding this mailbox to the address."
|
||||||
|
msgstr ""
|
||||||
|
"Dirección <a href='{url}'>{addr}</a> se enfrenta con '{mailbox}' buzón "
|
||||||
|
"localDirección. Considere agregar este buzón a la dirección."
|
||||||
|
|
||||||
|
#: admin.py:210
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"You have provided a custom filtering but filtering selected option is %s"
|
||||||
|
msgstr ""
|
||||||
|
"Ha proporcionado un filtrado personalizado, pero la opción de filtrado "
|
||||||
|
"seleccionada es %s"
|
||||||
|
|
||||||
|
#: admin.py:246 admin.py:252
|
||||||
|
msgid "Email"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:260
|
||||||
|
msgid "Mailboxes"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:269
|
||||||
|
msgid "Mailboxes links"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: admin.py:282
|
||||||
|
msgid "Forward"
|
||||||
|
msgstr "Redirección"
|
||||||
|
|
||||||
|
#: admin.py:321
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"Address '%s' matches mailbox '%s' local address, please consider if makes "
|
||||||
|
"sense adding the mailbox on the mailboxes or forward field."
|
||||||
|
msgstr ""
|
||||||
|
"Dirección '%s' coincide con buzón '%s', considere si lo hacetiene sentido "
|
||||||
|
"agregar el buzón en los buzones o el campo Reenviar"
|
||||||
|
|
||||||
|
#: backends.py:64
|
||||||
|
msgid "UNIX maildir user"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:263
|
||||||
|
msgid "Postfix address virtdomain-only"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:347
|
||||||
|
msgid "Postfix address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:434
|
||||||
|
msgid "Mail autoresponse"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:445
|
||||||
|
msgid "Dovecot Maildir size"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:502
|
||||||
|
msgid "Postfix-Mailscanner traffic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:672
|
||||||
|
msgid "Roundcube Identity Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: backends.py:682
|
||||||
|
msgid "rspamd ratelimit user"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:9
|
||||||
|
msgid "has mailbox"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:14
|
||||||
|
msgid "True"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:15
|
||||||
|
msgid "False"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:28
|
||||||
|
msgid "has forward"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:41
|
||||||
|
msgid "has address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: filters.py:53
|
||||||
|
msgid "has type server"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: forms.py:20 models.py:115
|
||||||
|
msgid "addresses"
|
||||||
|
msgstr "direcciones de correo"
|
||||||
|
|
||||||
|
#: forms.py:84
|
||||||
|
msgid "Mailboxes or forward address should be provided."
|
||||||
|
msgstr "Se deben proporcionar buzones o dirección de reenvío"
|
||||||
|
|
||||||
|
#: models.py:17 models.py:101
|
||||||
|
msgid "name"
|
||||||
|
msgstr "nombre"
|
||||||
|
|
||||||
|
#: models.py:19
|
||||||
|
#, python-format
|
||||||
|
msgid "Required. %s characters or fewer. Letters, digits and ./-/_ only."
|
||||||
|
msgstr "Requerido. %s caracteres o menos. Letras, dígitos y ./-/_ solamente"
|
||||||
|
|
||||||
|
#: models.py:22
|
||||||
|
msgid "Enter a valid mailbox name."
|
||||||
|
msgstr "Ingrese un nombre de buzón válido"
|
||||||
|
|
||||||
|
#: models.py:24
|
||||||
|
msgid "password"
|
||||||
|
msgstr "contraseña"
|
||||||
|
|
||||||
|
#: models.py:25
|
||||||
|
msgid "account"
|
||||||
|
msgstr "cuenta"
|
||||||
|
|
||||||
|
#: models.py:30
|
||||||
|
msgid "filtering"
|
||||||
|
msgstr "filtro"
|
||||||
|
|
||||||
|
#: models.py:32
|
||||||
|
msgid ""
|
||||||
|
"Arbitrary email filtering in <a href='https://tty1.net/blog/2011/sieve-"
|
||||||
|
"tutorial_en.html'>sieve language</a>. This overrides any automatic junk "
|
||||||
|
"email filtering"
|
||||||
|
msgstr ""
|
||||||
|
"Filtrado de correo electrónico arbitrario en <a href='https://tty1.net/"
|
||||||
|
"blog/2011/sieve-tutorial_en.html'>lenguaje de tamiz</a>. Esto anula "
|
||||||
|
"cualquier basura automáticaFiltrado por correo electrónico"
|
||||||
|
|
||||||
|
#: models.py:35
|
||||||
|
msgid "active"
|
||||||
|
msgstr "activo"
|
||||||
|
|
||||||
|
#: models.py:36
|
||||||
|
msgid "ratelimit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:43 models.py:106
|
||||||
|
msgid "mailboxes"
|
||||||
|
msgstr "buzones"
|
||||||
|
|
||||||
|
#: models.py:76
|
||||||
|
msgid "Custom filtering is selected but not provided."
|
||||||
|
msgstr "El filtrado personalizado se selecciona pero no se proporciona"
|
||||||
|
|
||||||
|
#: models.py:103
|
||||||
|
msgid "Address name, left blank for a <i>catch-all</i> address"
|
||||||
|
msgstr ""
|
||||||
|
"Nombre de la dirección, dejado en blanco para dirección <i>aleatoria</i>"
|
||||||
|
|
||||||
|
#: models.py:105
|
||||||
|
msgid "domain"
|
||||||
|
msgstr "dominio"
|
||||||
|
|
||||||
|
#: models.py:108
|
||||||
|
msgid "forward"
|
||||||
|
msgstr "redirección"
|
||||||
|
|
||||||
|
#: models.py:110
|
||||||
|
msgid "Space separated email addresses or mailboxes"
|
||||||
|
msgstr "Direcciones de correo electrónico o buzones separados por un espacio"
|
||||||
|
|
||||||
|
#: models.py:111
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Cuenta"
|
||||||
|
|
||||||
|
#: models.py:147
|
||||||
|
#, python-format
|
||||||
|
msgid "Please use mailboxes field for '%s' mailbox."
|
||||||
|
msgstr "Utilice el campo de mailboxes para el buzón '%s'"
|
||||||
|
|
||||||
|
#: models.py:153
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' forwards to itself."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:175
|
||||||
|
msgid "address"
|
||||||
|
msgstr "dirección"
|
||||||
|
|
||||||
|
#: models.py:178
|
||||||
|
msgid "subject"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:179
|
||||||
|
msgid "message"
|
||||||
|
msgstr "mensage"
|
||||||
|
|
||||||
|
#: models.py:180
|
||||||
|
msgid "enabled"
|
||||||
|
msgstr "habilitado"
|
||||||
|
|
||||||
|
#: settings.py:25
|
||||||
|
msgid "Limit for system user based mailbox on Linux is 32."
|
||||||
|
msgstr ""
|
||||||
|
"El límite para el buzón basado en el usuario del sistema en Linux es 32."
|
||||||
|
|
||||||
|
#: settings.py:98
|
||||||
|
msgid "Disable"
|
||||||
|
msgstr "Deshabilitado"
|
||||||
|
|
||||||
|
#: settings.py:99
|
||||||
|
msgid "Reject spam (Score≥8)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: settings.py:118
|
||||||
|
msgid "Reject spam (Score≥5)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: settings.py:137
|
||||||
|
msgid "Archive spam (Score≥8)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: settings.py:157
|
||||||
|
msgid "Archive spam (Score≥5)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: validators.py:15
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is not a correct email name."
|
||||||
|
msgstr "'%s' no es un nombre de email correcto."
|
||||||
|
|
||||||
|
#: validators.py:33
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is already present."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: validators.py:41
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is not a valid email address."
|
||||||
|
msgstr "'%s' no es una dirección valida."
|
||||||
|
|
||||||
|
#: validators.py:45
|
||||||
|
#, python-format
|
||||||
|
msgid "'%s' is not an existent mailbox."
|
||||||
|
msgstr "'%s' no es un mailbox existente."
|
|
@ -1,11 +1,12 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
import django.core.validators
|
||||||
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import orchestra.contrib.mailboxes.validators
|
import orchestra.contrib.mailboxes.validators
|
||||||
import django.core.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
@ -20,10 +21,10 @@ class Migration(migrations.Migration):
|
||||||
name='Address',
|
name='Address',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('name', models.CharField(verbose_name='name', validators=[orchestra.contrib.mailboxes.validators.validate_emailname], blank=True, help_text='Address name, left blank for a <i>catch-all</i> address', max_length=64)),
|
('name', models.CharField(blank=True, help_text='Address name, left blank for a <i>catch-all</i> address', max_length=64, validators=[orchestra.contrib.mailboxes.validators.validate_emailname], verbose_name='name')),
|
||||||
('forward', models.CharField(verbose_name='forward', validators=[orchestra.contrib.mailboxes.validators.validate_forward], blank=True, help_text='Space separated email addresses or mailboxes', max_length=256)),
|
('forward', models.CharField(blank=True, help_text='Space separated email addresses or mailboxes', max_length=256, validators=[orchestra.contrib.mailboxes.validators.validate_forward], verbose_name='forward')),
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, related_name='addresses', verbose_name='Account')),
|
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
||||||
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='domains.Domain', related_name='addresses', verbose_name='domain')),
|
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='domains.Domain', verbose_name='domain')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'verbose_name_plural': 'addresses',
|
'verbose_name_plural': 'addresses',
|
||||||
|
@ -33,22 +34,22 @@ class Migration(migrations.Migration):
|
||||||
name='Autoresponse',
|
name='Autoresponse',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('subject', models.CharField(verbose_name='subject', max_length=256)),
|
('subject', models.CharField(max_length=256, verbose_name='subject')),
|
||||||
('message', models.TextField(verbose_name='message')),
|
('message', models.TextField(verbose_name='message')),
|
||||||
('enabled', models.BooleanField(verbose_name='enabled', default=False)),
|
('enabled', models.BooleanField(default=False, verbose_name='enabled')),
|
||||||
('address', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='mailboxes.Address', related_name='autoresponse', verbose_name='address')),
|
('address', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='autoresponse', to='mailboxes.Address', verbose_name='address')),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Mailbox',
|
name='Mailbox',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('name', models.CharField(verbose_name='name', validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid mailbox name.')], help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=64, unique=True)),
|
('name', models.CharField(db_index=True, help_text='Required. 32 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid mailbox name.')], verbose_name='name')),
|
||||||
('password', models.CharField(verbose_name='password', max_length=128)),
|
('password', models.CharField(max_length=128, verbose_name='password')),
|
||||||
('filtering', models.CharField(choices=[('CUSTOM', 'Custom filtering'), ('REDIRECT', 'Archive spam (X-Spam-Score≥9)'), ('DISABLE', 'Disable'), ('REJECT', 'Reject spam (X-Spam-Score≥9)')], max_length=16, default='REDIRECT')),
|
('filtering', models.CharField(choices=[('CUSTOM', 'Custom filtering'), ('DISABLE', 'Disable'), ('REDIRECT', 'Archive spam (Score≥8)'), ('REDIRECT5', 'Archive spam (Score≥5)'), ('REJECT', 'Reject spam (Score≥8)'), ('REJECT5', 'Reject spam (Score≥5)')], default='REDIRECT', max_length=16)),
|
||||||
('custom_filtering', models.TextField(verbose_name='filtering', validators=[orchestra.contrib.mailboxes.validators.validate_sieve], blank=True, help_text='Arbitrary email filtering in sieve language. This overrides any automatic junk email filtering')),
|
('custom_filtering', models.TextField(blank=True, help_text="Arbitrary email filtering in <a href='https://tty1.net/blog/2011/sieve-tutorial_en.html'>sieve language</a>. This overrides any automatic junk email filtering", validators=[orchestra.contrib.mailboxes.validators.validate_sieve], verbose_name='filtering')),
|
||||||
('is_active', models.BooleanField(verbose_name='active', default=True)),
|
('is_active', models.BooleanField(default=True, verbose_name='active')),
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, related_name='mailboxes', verbose_name='account')),
|
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mailboxes', to=settings.AUTH_USER_MODEL, verbose_name='account')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'verbose_name_plural': 'mailboxes',
|
'verbose_name_plural': 'mailboxes',
|
||||||
|
@ -57,7 +58,7 @@ class Migration(migrations.Migration):
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='address',
|
model_name='address',
|
||||||
name='mailboxes',
|
name='mailboxes',
|
||||||
field=models.ManyToManyField(verbose_name='mailboxes', to='mailboxes.Mailbox', blank=True, related_name='addresses'),
|
field=models.ManyToManyField(blank=True, related_name='addresses', to='mailboxes.Mailbox', verbose_name='mailboxes'),
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name='address',
|
name='address',
|
||||||
|
|
|
@ -1,71 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-04-22 11:27
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
import orchestra.contrib.mailboxes.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
replaces = [('mailboxes', '0001_initial'), ('mailboxes', '0002_auto_20160219_1032'), ('mailboxes', '0003_auto_20170528_2011')]
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('domains', '0001_initial'),
|
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Address',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(blank=True, help_text='Address name, left blank for a <i>catch-all</i> address', max_length=64, validators=[orchestra.contrib.mailboxes.validators.validate_emailname], verbose_name='name')),
|
|
||||||
('forward', models.CharField(blank=True, help_text='Space separated email addresses or mailboxes', max_length=256, validators=[orchestra.contrib.mailboxes.validators.validate_forward], verbose_name='forward')),
|
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to=settings.AUTH_USER_MODEL, verbose_name='Account')),
|
|
||||||
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='domains.Domain', verbose_name='domain')),
|
|
||||||
],
|
|
||||||
options={
|
|
||||||
'verbose_name_plural': 'addresses',
|
|
||||||
},
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Autoresponse',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('subject', models.CharField(max_length=256, verbose_name='subject')),
|
|
||||||
('message', models.TextField(verbose_name='message')),
|
|
||||||
('enabled', models.BooleanField(default=False, verbose_name='enabled')),
|
|
||||||
('address', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='autoresponse', to='mailboxes.Address', verbose_name='address')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Mailbox',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('name', models.CharField(db_index=True, help_text='Required. 32 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid mailbox name.')], verbose_name='name')),
|
|
||||||
('password', models.CharField(max_length=128, verbose_name='password')),
|
|
||||||
('filtering', models.CharField(choices=[('CUSTOM', 'Custom filtering'), ('DISABLE', 'Disable'), ('REDIRECT', 'Archive spam (Score≥8)'), ('REDIRECT5', 'Archive spam (Score≥5)'), ('REJECT', 'Reject spam (Score≥8)'), ('REJECT5', 'Reject spam (Score≥5)')], default='REDIRECT', max_length=16)),
|
|
||||||
('custom_filtering', models.TextField(blank=True, help_text="Arbitrary email filtering in <a href='https://tty1.net/blog/2011/sieve-tutorial_en.html'>sieve language</a>. This overrides any automatic junk email filtering", validators=[orchestra.contrib.mailboxes.validators.validate_sieve], verbose_name='filtering')),
|
|
||||||
('is_active', models.BooleanField(default=True, verbose_name='active')),
|
|
||||||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mailboxes', to=settings.AUTH_USER_MODEL, verbose_name='account')),
|
|
||||||
],
|
|
||||||
options={
|
|
||||||
'verbose_name_plural': 'mailboxes',
|
|
||||||
},
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='address',
|
|
||||||
name='mailboxes',
|
|
||||||
field=models.ManyToManyField(blank=True, related_name='addresses', to='mailboxes.Mailbox', verbose_name='mailboxes'),
|
|
||||||
),
|
|
||||||
migrations.AlterUniqueTogether(
|
|
||||||
name='address',
|
|
||||||
unique_together=set([('name', 'domain')]),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,25 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.core.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('mailboxes', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='mailbox',
|
|
||||||
name='filtering',
|
|
||||||
field=models.CharField(max_length=16, choices=[('CUSTOM', 'Custom filtering'), ('DISABLE', 'Disable'), ('REDIRECT', 'Archive spam (Score≥8)'), ('REDIRECT5', 'Archive spam (Score≥5)'), ('REJECT', 'Reject spam (Score≥8)'), ('REJECT5', 'Reject spam (Score≥5)')], default='REDIRECT'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='mailbox',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(max_length=64, db_index=True, unique=True, help_text='Required. 32 characters or fewer. Letters, digits and ./-/_ only.', validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid mailbox name.')], verbose_name='name'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 2.2.24 on 2024-07-11 12:25
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('mailboxes', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mailbox',
|
||||||
|
name='ratelimit',
|
||||||
|
field=models.CharField(blank=True, choices=[('userbase', 'base'), ('user100', '100'), ('user200', '200'), ('user500', '500')], default='userbase', max_length=100, null=True, verbose_name='ratelimit'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -1,27 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2017-05-28 18:11
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
import orchestra.contrib.mailboxes.validators
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('mailboxes', '0002_auto_20160219_1032'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='mailbox',
|
|
||||||
name='custom_filtering',
|
|
||||||
field=models.TextField(blank=True, help_text="Arbitrary email filtering in <a href='https://tty1.net/blog/2011/sieve-tutorial_en.html'>sieve language</a>. This overrides any automatic junk email filtering", validators=[orchestra.contrib.mailboxes.validators.validate_sieve], verbose_name='filtering'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='mailbox',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(db_index=True, help_text='Required. 32 characters or fewer. Letters, digits and ./-/_ only.', max_length=32, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.-]+$', 'Enter a valid mailbox name.')], verbose_name='name'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -33,6 +33,11 @@ class Mailbox(models.Model):
|
||||||
"<a href='https://tty1.net/blog/2011/sieve-tutorial_en.html'>sieve language</a>. "
|
"<a href='https://tty1.net/blog/2011/sieve-tutorial_en.html'>sieve language</a>. "
|
||||||
"This overrides any automatic junk email filtering"))
|
"This overrides any automatic junk email filtering"))
|
||||||
is_active = models.BooleanField(_("active"), default=True)
|
is_active = models.BooleanField(_("active"), default=True)
|
||||||
|
ratelimit = models.CharField(_("ratelimit"),
|
||||||
|
max_length=100, null=True, blank=True,
|
||||||
|
choices=settings.MAILBOXES_RATELIMIT_GROUP,
|
||||||
|
default=settings.MAILBOXES_RATELIMIT_GROUP_DEFAULT,)
|
||||||
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name_plural = _("mailboxes")
|
verbose_name_plural = _("mailboxes")
|
||||||
|
|
|
@ -203,3 +203,21 @@ MAILBOXES_MOVE_ON_DELETE_PATH = Setting('MAILBOXES_MOVE_ON_DELETE_PATH',
|
||||||
help_text="Available fromat names: <tt>%s</tt>" % ', '.join(_backend_names),
|
help_text="Available fromat names: <tt>%s</tt>" % ', '.join(_backend_names),
|
||||||
validators=[Setting.string_format_validator(_backend_names)],
|
validators=[Setting.string_format_validator(_backend_names)],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
MAILBOXES_RATELIMIT_GROUP = Setting('MAILBOXES_RATELIMIT_GROUP', (
|
||||||
|
('userbase', 'base'),
|
||||||
|
('user100', '100'),
|
||||||
|
('user200', '200'),
|
||||||
|
('user500', '500'),
|
||||||
|
),
|
||||||
|
help_text="Available messages per second"
|
||||||
|
)
|
||||||
|
|
||||||
|
MAILBOXES_RATELIMIT_GROUP_DEFAULT = Setting('MAILBOXES_RATELIMIT_GROUP_DEFAULT',
|
||||||
|
'userbase',
|
||||||
|
choices=MAILBOXES_RATELIMIT_GROUP
|
||||||
|
)
|
||||||
|
|
||||||
|
MAILBOXES_RATELIMIT_PATH_MAPS = Setting('MAILBOXES_RATELIMIT_PATH_MAPS',
|
||||||
|
'/etc/rspamd/local.d/maps/',
|
||||||
|
)
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2021-04-22 11:28
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.db import models, migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
@ -14,8 +15,8 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Message',
|
name='Message',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, serialize=False, verbose_name='ID', primary_key=True)),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('state', models.CharField(choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failes')], default='QUEUED', verbose_name='State', max_length=16)),
|
('state', models.CharField(choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failes')], default='QUEUED', max_length=16, verbose_name='State')),
|
||||||
('priority', models.PositiveIntegerField(choices=[(0, 'Critical (not queued)'), (1, 'High'), (2, 'Normal'), (3, 'Low')], default=2, verbose_name='Priority')),
|
('priority', models.PositiveIntegerField(choices=[(0, 'Critical (not queued)'), (1, 'High'), (2, 'Normal'), (3, 'Low')], default=2, verbose_name='Priority')),
|
||||||
('to_address', models.CharField(max_length=256)),
|
('to_address', models.CharField(max_length=256)),
|
||||||
('from_address', models.CharField(max_length=256)),
|
('from_address', models.CharField(max_length=256)),
|
||||||
|
@ -29,11 +30,56 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='SMTPLog',
|
name='SMTPLog',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, serialize=False, verbose_name='ID', primary_key=True)),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('result', models.CharField(choices=[('SUCCESS', 'Success'), ('FAILURE', 'Failure')], default='SUCCESS', max_length=16)),
|
('result', models.CharField(choices=[('SUCCESS', 'Success'), ('FAILURE', 'Failure')], default='SUCCESS', max_length=16)),
|
||||||
('date', models.DateTimeField(auto_now_add=True)),
|
('date', models.DateTimeField(auto_now_add=True)),
|
||||||
('log_message', models.TextField()),
|
('log_message', models.TextField()),
|
||||||
('message', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mailer.Message', editable=False, related_name='logs')),
|
('message', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='logs', to='mailer.Message')),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='message',
|
||||||
|
old_name='last_retry',
|
||||||
|
new_name='last_try',
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='last_try',
|
||||||
|
field=models.DateTimeField(verbose_name='last try'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='subject',
|
||||||
|
field=models.TextField(verbose_name='subject'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='last_try',
|
||||||
|
field=models.DateTimeField(null=True, verbose_name='last try'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='state',
|
||||||
|
field=models.CharField(choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failed')], default='QUEUED', max_length=16, verbose_name='State'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='last_try',
|
||||||
|
field=models.DateTimeField(db_index=True, null=True, verbose_name='last try'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='priority',
|
||||||
|
field=models.PositiveIntegerField(choices=[(0, 'Critical (not queued)'), (1, 'High'), (2, 'Normal'), (3, 'Low')], db_index=True, default=2, verbose_name='Priority'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='retries',
|
||||||
|
field=models.PositiveIntegerField(db_index=True, default=0, verbose_name='retries'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='message',
|
||||||
|
name='state',
|
||||||
|
field=models.CharField(choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failed')], db_index=True, default='QUEUED', max_length=16, verbose_name='State'),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,89 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.10.5 on 2021-04-22 11:28
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import django.db.models.deletion
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
replaces = [('mailer', '0001_initial'), ('mailer', '0002_auto_20150617_1021'), ('mailer', '0003_auto_20150617_1024'), ('mailer', '0004_auto_20150805_1328'), ('mailer', '0005_auto_20160219_1056')]
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='Message',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('state', models.CharField(choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failes')], default='QUEUED', max_length=16, verbose_name='State')),
|
|
||||||
('priority', models.PositiveIntegerField(choices=[(0, 'Critical (not queued)'), (1, 'High'), (2, 'Normal'), (3, 'Low')], default=2, verbose_name='Priority')),
|
|
||||||
('to_address', models.CharField(max_length=256)),
|
|
||||||
('from_address', models.CharField(max_length=256)),
|
|
||||||
('subject', models.CharField(max_length=256, verbose_name='subject')),
|
|
||||||
('content', models.TextField(verbose_name='content')),
|
|
||||||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')),
|
|
||||||
('retries', models.PositiveIntegerField(default=0, verbose_name='retries')),
|
|
||||||
('last_retry', models.DateTimeField(auto_now=True, verbose_name='last try')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='SMTPLog',
|
|
||||||
fields=[
|
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('result', models.CharField(choices=[('SUCCESS', 'Success'), ('FAILURE', 'Failure')], default='SUCCESS', max_length=16)),
|
|
||||||
('date', models.DateTimeField(auto_now_add=True)),
|
|
||||||
('log_message', models.TextField()),
|
|
||||||
('message', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='logs', to='mailer.Message')),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
migrations.RenameField(
|
|
||||||
model_name='message',
|
|
||||||
old_name='last_retry',
|
|
||||||
new_name='last_try',
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='last_try',
|
|
||||||
field=models.DateTimeField(verbose_name='last try'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='subject',
|
|
||||||
field=models.TextField(verbose_name='subject'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='last_try',
|
|
||||||
field=models.DateTimeField(null=True, verbose_name='last try'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='state',
|
|
||||||
field=models.CharField(choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failed')], default='QUEUED', max_length=16, verbose_name='State'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='last_try',
|
|
||||||
field=models.DateTimeField(db_index=True, null=True, verbose_name='last try'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='priority',
|
|
||||||
field=models.PositiveIntegerField(choices=[(0, 'Critical (not queued)'), (1, 'High'), (2, 'Normal'), (3, 'Low')], db_index=True, default=2, verbose_name='Priority'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='retries',
|
|
||||||
field=models.PositiveIntegerField(db_index=True, default=0, verbose_name='retries'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='state',
|
|
||||||
field=models.CharField(choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failed')], db_index=True, default='QUEUED', max_length=16, verbose_name='State'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,24 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('mailer', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='last_retry',
|
|
||||||
field=models.DateTimeField(verbose_name='last try'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='subject',
|
|
||||||
field=models.TextField(verbose_name='subject'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,19 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('mailer', '0002_auto_20150617_1021'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='last_retry',
|
|
||||||
field=models.DateTimeField(null=True, verbose_name='last try'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,24 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import models, migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('mailer', '0003_auto_20150617_1024'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.RenameField(
|
|
||||||
model_name='message',
|
|
||||||
old_name='last_retry',
|
|
||||||
new_name='last_try',
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='state',
|
|
||||||
field=models.CharField(verbose_name='State', max_length=16, choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failed')], default='QUEUED'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,34 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('mailer', '0004_auto_20150805_1328'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='last_try',
|
|
||||||
field=models.DateTimeField(null=True, db_index=True, verbose_name='last try'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='priority',
|
|
||||||
field=models.PositiveIntegerField(default=2, choices=[(0, 'Critical (not queued)'), (1, 'High'), (2, 'Normal'), (3, 'Low')], db_index=True, verbose_name='Priority'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='retries',
|
|
||||||
field=models.PositiveIntegerField(default=0, db_index=True, verbose_name='retries'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='message',
|
|
||||||
name='state',
|
|
||||||
field=models.CharField(default='QUEUED', choices=[('QUEUED', 'Queued'), ('SENT', 'Sent'), ('DEFERRED', 'Deferred'), ('FAILED', 'Failed')], db_index=True, max_length=16, verbose_name='State'),
|
|
||||||
),
|
|
||||||
]
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue