aa-alumni 0.1.6a0__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aa-alumni might be problematic. Click here for more details.
- {aa_alumni-0.1.6a0.dist-info → aa_alumni-0.2.0.dist-info}/LICENSE +1 -1
- {aa_alumni-0.1.6a0.dist-info → aa_alumni-0.2.0.dist-info}/METADATA +5 -5
- aa_alumni-0.2.0.dist-info/RECORD +20 -0
- alumni/__init__.py +1 -1
- alumni/admin.py +1 -3
- alumni/app_settings.py +1 -1
- alumni/apps.py +1 -1
- alumni/locale/en/LC_MESSAGES/django.po +42 -0
- alumni/migrations/0003_alter_alumnisetup_options_and_more.py +27 -0
- alumni/models.py +17 -21
- aa_alumni-0.1.6a0.dist-info/RECORD +0 -18
- {aa_alumni-0.1.6a0.dist-info → aa_alumni-0.2.0.dist-info}/WHEEL +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aa_alumni
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Integration with Alliance Auths State System, creates and maintains an Alumni State for past members of an Alliance and/or Corporation
|
|
5
5
|
Keywords: allianceauth,eveonline
|
|
6
6
|
Author-email: Joel Falknau <joel.falknau@gmail.com>
|
|
@@ -10,6 +10,7 @@ Classifier: Environment :: Web Environment
|
|
|
10
10
|
Classifier: Framework :: Celery
|
|
11
11
|
Classifier: Framework :: Django
|
|
12
12
|
Classifier: Framework :: Django :: 4.0
|
|
13
|
+
Classifier: Framework :: Django :: 4.2
|
|
13
14
|
Classifier: Intended Audience :: Developers
|
|
14
15
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
16
|
Classifier: Operating System :: OS Independent
|
|
@@ -19,13 +20,12 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
19
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
21
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
23
25
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
24
26
|
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
25
27
|
Requires-Dist: allianceauth>=3.0.0,<5.0.0
|
|
26
|
-
Requires-Dist: django-eveuniverse
|
|
27
28
|
Requires-Dist: django-solo>=2.0.0,<3.0.0
|
|
28
|
-
Requires-Dist: py-cord>=2.0.0,<3.0.0
|
|
29
29
|
Project-URL: Homepage, https://gitlab.com/tactical-supremacy/aa-alumni
|
|
30
30
|
Project-URL: Source, https://gitlab.com/tactical-supremacy/aa-alumni
|
|
31
31
|
Project-URL: Tracker, https://gitlab.com/tactical-supremacy/aa-alumni/-/issues
|
|
@@ -44,7 +44,7 @@ Remove/Promote any state with a priority of `1`, Alumni is considered slightly b
|
|
|
44
44
|
|
|
45
45
|
### Step 2 - Install from pip
|
|
46
46
|
|
|
47
|
-
```
|
|
47
|
+
```shell
|
|
48
48
|
pip install aa-alumni
|
|
49
49
|
```
|
|
50
50
|
|
|
@@ -70,7 +70,7 @@ CELERYBEAT_SCHEDULE['alumni_run_update_all_models'] = {
|
|
|
70
70
|
|
|
71
71
|
### Step 4 - Update AA's State system
|
|
72
72
|
|
|
73
|
-
```
|
|
73
|
+
```shell
|
|
74
74
|
python myauth/manage.py alumni_state
|
|
75
75
|
```
|
|
76
76
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
alumni/__init__.py,sha256=ZJgYGwc1dwuqfSOB6cIFy4HdOI9wOkRyhQHe8lhKsNc,186
|
|
2
|
+
alumni/admin.py,sha256=VUDXqxBX-Dw_3T4QGXDTtz-Ulgc_WkoCW54OXbd3a5o,737
|
|
3
|
+
alumni/app_settings.py,sha256=SoV6HhuvBaHSAgBHD6MxNf74Qjdsi_fmB6aZU__Vwlw,172
|
|
4
|
+
alumni/apps.py,sha256=JNO5V_uldj3Y2OEJL0h4u86LoPZr5UOhzkcTFZ6VeNI,239
|
|
5
|
+
alumni/models.py,sha256=tgcy4FtHFZNyfCl_Rma3igPgxfaY433YG2CObBrsMe8,2206
|
|
6
|
+
alumni/providers.py,sha256=g0i7nqSdnfScx-ZjByFZGoHw-ptNkiey5g_yycobSCQ,999
|
|
7
|
+
alumni/signals.py,sha256=ZiWER0gs-0KCS6nWhCwE1_-iDXr9yrS7NSPBfLBDjak,789
|
|
8
|
+
alumni/tasks.py,sha256=hXd340JHb3HM-ZVdMI4GHJDQ7C6mMrQcwVMYVU9MsR8,8058
|
|
9
|
+
alumni/locale/en/LC_MESSAGES/django.po,sha256=doek11ISIJRXg-vClnCNxdlObAeUweAKs50jR5bAEVE,1249
|
|
10
|
+
alumni/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
alumni/management/commands/alumni_state.py,sha256=OyJKnkzk9eksk-vULSVBdGvMEhxZX_xa7eH5RXFjeJ8,759
|
|
12
|
+
alumni/migrations/0001_initial.py,sha256=C8R2k4y5KvpTLU_etBQ0J3jkGYd3HAgevAekUZvzxDw,3283
|
|
13
|
+
alumni/migrations/0002_auto_20211230_0147.py,sha256=p3sK1Ohdf6O20tDbMmuPJwC2vVFH-AR0kkXFy9H34_Y,626
|
|
14
|
+
alumni/migrations/0003_alter_alumnisetup_options_and_more.py,sha256=JyXQqo9vR-hRx7CHsNpXLxZEjEijSBLW3zX7Zmw3Y50,1012
|
|
15
|
+
alumni/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
alumni/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
aa_alumni-0.2.0.dist-info/LICENSE,sha256=6TxpZBZY7OLGLrJXe6vREu--u7CjCfW19u4oXW_uZKs,1069
|
|
18
|
+
aa_alumni-0.2.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
19
|
+
aa_alumni-0.2.0.dist-info/METADATA,sha256=lcQ9lHHulZDVqOxJwavmCg2OV_Rc02GbB_zs0WCcCWM,3262
|
|
20
|
+
aa_alumni-0.2.0.dist-info/RECORD,,
|
alumni/__init__.py
CHANGED
alumni/admin.py
CHANGED
|
@@ -8,9 +8,7 @@ from .models import (
|
|
|
8
8
|
@admin.register(AlumniSetup)
|
|
9
9
|
class AlumniSetupAdmin(admin.ModelAdmin):
|
|
10
10
|
search_fields = ['alumni_corporations', ]
|
|
11
|
-
filter_horizontal = [
|
|
12
|
-
"alumni_corporations",
|
|
13
|
-
"alumni_alliances"]
|
|
11
|
+
filter_horizontal = ["alumni_corporations", "alumni_alliances"]
|
|
14
12
|
|
|
15
13
|
|
|
16
14
|
@admin.register(CorporationAllianceHistory)
|
alumni/app_settings.py
CHANGED
alumni/apps.py
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# SOME DESCRIPTIVE TITLE.
|
|
2
|
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
+
# This file is distributed under the same license as the PACKAGE package.
|
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
|
+
#
|
|
6
|
+
#, fuzzy
|
|
7
|
+
msgid ""
|
|
8
|
+
msgstr ""
|
|
9
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
|
+
"Report-Msgid-Bugs-To: \n"
|
|
11
|
+
"POT-Creation-Date: 2024-05-11 18:13+1000\n"
|
|
12
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
|
+
"Language: \n"
|
|
16
|
+
"MIME-Version: 1.0\n"
|
|
17
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
19
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
20
|
+
#: alumni/models.py:14
|
|
21
|
+
msgid ""
|
|
22
|
+
"Characters with these Corps in their History will be given Alumni Status"
|
|
23
|
+
msgstr ""
|
|
24
|
+
|
|
25
|
+
#: alumni/models.py:18
|
|
26
|
+
msgid ""
|
|
27
|
+
"Characters with these Alliances in their History will be given Alumni Status"
|
|
28
|
+
msgstr ""
|
|
29
|
+
|
|
30
|
+
#: alumni/models.py:21 alumni/models.py:24 alumni/models.py:25
|
|
31
|
+
msgid "Alumni Config"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#: alumni/models.py:37 alumni/models.py:52
|
|
35
|
+
msgid "True if the corporation has been deleted"
|
|
36
|
+
msgstr ""
|
|
37
|
+
|
|
38
|
+
#: alumni/models.py:39 alumni/models.py:54
|
|
39
|
+
msgid ""
|
|
40
|
+
"An incrementing ID that can be used to canonically establish order of "
|
|
41
|
+
"records in cases where dates may be ambiguous"
|
|
42
|
+
msgstr ""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Generated by Django 4.2.10 on 2024-05-11 08:13
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('alumni', '0002_auto_20211230_0147'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterModelOptions(
|
|
14
|
+
name='alumnisetup',
|
|
15
|
+
options={'verbose_name': 'Alumni Config', 'verbose_name_plural': 'Alumni Config'},
|
|
16
|
+
),
|
|
17
|
+
migrations.AlterField(
|
|
18
|
+
model_name='charactercorporationhistory',
|
|
19
|
+
name='record_id',
|
|
20
|
+
field=models.PositiveIntegerField(help_text='An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous'),
|
|
21
|
+
),
|
|
22
|
+
migrations.AlterField(
|
|
23
|
+
model_name='corporationalliancehistory',
|
|
24
|
+
name='record_id',
|
|
25
|
+
field=models.PositiveIntegerField(help_text='An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous'),
|
|
26
|
+
),
|
|
27
|
+
]
|
alumni/models.py
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
from
|
|
1
|
+
from solo.models import SingletonModel
|
|
2
|
+
|
|
2
3
|
from django.db import models
|
|
4
|
+
from django.utils.translation import gettext as _
|
|
3
5
|
|
|
4
6
|
from allianceauth.eveonline.models import (
|
|
5
7
|
EveAllianceInfo, EveCharacter, EveCorporationInfo,
|
|
6
8
|
)
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
class AlumniSetup(
|
|
11
|
+
class AlumniSetup(SingletonModel):
|
|
10
12
|
alumni_corporations = models.ManyToManyField(
|
|
11
13
|
EveCorporationInfo,
|
|
12
14
|
blank=True,
|
|
13
|
-
help_text="Characters with these Corps in their History will be given Alumni Status")
|
|
15
|
+
help_text=_("Characters with these Corps in their History will be given Alumni Status"))
|
|
14
16
|
alumni_alliances = models.ManyToManyField(
|
|
15
17
|
EveAllianceInfo,
|
|
16
18
|
blank=True,
|
|
17
|
-
help_text="Characters with these Alliances in their History will be given Alumni Status")
|
|
19
|
+
help_text=_("Characters with these Alliances in their History will be given Alumni Status"))
|
|
18
20
|
|
|
19
|
-
def
|
|
20
|
-
|
|
21
|
-
# Force a single object
|
|
22
|
-
raise ValidationError('There is can be only one \
|
|
23
|
-
AlumniCorp instance')
|
|
24
|
-
self.pk = self.id = 1 # If this happens to be deleted and recreated, force it to be 1
|
|
25
|
-
return super().save(*args, **kwargs)
|
|
21
|
+
def __str__(self):
|
|
22
|
+
return _("Alumni Config")
|
|
26
23
|
|
|
27
24
|
class Meta:
|
|
28
|
-
|
|
25
|
+
verbose_name = _("Alumni Config")
|
|
26
|
+
verbose_name_plural = _("Alumni Config")
|
|
29
27
|
|
|
30
28
|
|
|
31
29
|
class CorporationAllianceHistory(models.Model):
|
|
@@ -37,9 +35,9 @@ class CorporationAllianceHistory(models.Model):
|
|
|
37
35
|
alliance_id = models.PositiveIntegerField(blank=True, null=True, db_index=True)
|
|
38
36
|
is_deleted = models.BooleanField(
|
|
39
37
|
default=False,
|
|
40
|
-
help_text=
|
|
41
|
-
record_id = models.
|
|
42
|
-
help_text=
|
|
38
|
+
help_text=_("True if the corporation has been deleted"))
|
|
39
|
+
record_id = models.PositiveIntegerField(
|
|
40
|
+
help_text=_("An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous"))
|
|
43
41
|
start_date = models.DateTimeField()
|
|
44
42
|
|
|
45
43
|
|
|
@@ -48,13 +46,11 @@ class CharacterCorporationHistory(models.Model):
|
|
|
48
46
|
constraints = [
|
|
49
47
|
models.UniqueConstraint(fields=['character', 'record_id'], name="CharacterCorporationRecord"),
|
|
50
48
|
]
|
|
51
|
-
character = models.ForeignKey(
|
|
52
|
-
EveCharacter,
|
|
53
|
-
on_delete=models.CASCADE)
|
|
49
|
+
character = models.ForeignKey(EveCharacter, on_delete=models.CASCADE)
|
|
54
50
|
corporation_id = models.PositiveIntegerField()
|
|
55
51
|
is_deleted = models.BooleanField(
|
|
56
52
|
default=False,
|
|
57
|
-
help_text=
|
|
58
|
-
record_id = models.
|
|
59
|
-
help_text=
|
|
53
|
+
help_text=_("True if the corporation has been deleted"))
|
|
54
|
+
record_id = models.PositiveIntegerField(
|
|
55
|
+
help_text=_("An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous"))
|
|
60
56
|
start_date = models.DateTimeField()
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
alumni/__init__.py,sha256=gynnMEjTF3hnWOInUY2HE8WzTMEdanzvhCmrPzzhxHA,187
|
|
2
|
-
alumni/admin.py,sha256=C1-AHencOf4764-iVTLtENN33QjBRNFvlloy4sx7dzQ,754
|
|
3
|
-
alumni/app_settings.py,sha256=fmhFSNdpH7ky2TTVI7JjHp_IUFUiD_fz0JmLqriwk5o,174
|
|
4
|
-
alumni/apps.py,sha256=e58h_dmh1S6Swj6Zb4V5fQx42jMXA_7Tpwq6cKFr4TU,236
|
|
5
|
-
alumni/models.py,sha256=gFvdrMxJ5JIm7cYm8FCrFqKQ9AMIfH-guu3JixW0yns,2432
|
|
6
|
-
alumni/providers.py,sha256=g0i7nqSdnfScx-ZjByFZGoHw-ptNkiey5g_yycobSCQ,999
|
|
7
|
-
alumni/signals.py,sha256=ZiWER0gs-0KCS6nWhCwE1_-iDXr9yrS7NSPBfLBDjak,789
|
|
8
|
-
alumni/tasks.py,sha256=hXd340JHb3HM-ZVdMI4GHJDQ7C6mMrQcwVMYVU9MsR8,8058
|
|
9
|
-
alumni/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
alumni/management/commands/alumni_state.py,sha256=OyJKnkzk9eksk-vULSVBdGvMEhxZX_xa7eH5RXFjeJ8,759
|
|
11
|
-
alumni/migrations/0001_initial.py,sha256=C8R2k4y5KvpTLU_etBQ0J3jkGYd3HAgevAekUZvzxDw,3283
|
|
12
|
-
alumni/migrations/0002_auto_20211230_0147.py,sha256=p3sK1Ohdf6O20tDbMmuPJwC2vVFH-AR0kkXFy9H34_Y,626
|
|
13
|
-
alumni/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
alumni/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
aa_alumni-0.1.6a0.dist-info/LICENSE,sha256=M983x9Ht7Kd7YrhBXITYDg1viQWT-3-_e-9MRix08_c,1069
|
|
16
|
-
aa_alumni-0.1.6a0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
17
|
-
aa_alumni-0.1.6a0.dist-info/METADATA,sha256=yav14HivBr6DtDb3-ruj1X2kRBAgydnUJ063_QiqPKM,3243
|
|
18
|
-
aa_alumni-0.1.6a0.dist-info/RECORD,,
|
|
File without changes
|