photo-objects 0.10.3__tar.gz → 0.10.4__tar.gz
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.
- {photo_objects-0.10.3 → photo_objects-0.10.4}/PKG-INFO +3 -3
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/backup.py +15 -1
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/models.py +1 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects.egg-info/PKG-INFO +3 -3
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects.egg-info/requires.txt +1 -1
- {photo_objects-0.10.3 → photo_objects-0.10.4}/pyproject.toml +3 -3
- {photo_objects-0.10.3 → photo_objects-0.10.4}/LICENSE +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/README.md +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/config.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/admin.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/album.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/auth.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/photo.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/photo_change_request.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/utils.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/apps.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/conf.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/context_processors.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/forms.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/management/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/management/commands/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/management/commands/clean-scaled-photos.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/management/commands/create-initial-admin-account.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/management/commands/restore-backup.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0001_initial.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0002_created_at_updated_at.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0003_admin_visibility.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0004_camera_setup_and_settings.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0005_sitesettings.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0006_photo_alt_text.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0007_backup.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0008_sitesettings_copyright_notice.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/objsto.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/signals.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/templatetags/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/templatetags/photo_objects_extras.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_album.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_auth.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_commands.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_img.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_og_meta.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_photo.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_photo_change_requests.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/test_utils.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/tests/utils.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/urls.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/api/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/api/album.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/api/auth.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/api/photo.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/api/utils.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/__init__.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/album.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/configuration.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/photo.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/photo_change_request.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/users.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/utils.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/utils.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/error.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/img.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/utils.py +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects.egg-info/SOURCES.txt +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects.egg-info/dependency_links.txt +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects.egg-info/top_level.txt +0 -0
- {photo_objects-0.10.3 → photo_objects-0.10.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: photo-objects
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.4
|
|
4
4
|
Summary: Application for storing photos in S3 compatible object-storage.
|
|
5
5
|
Author: Toni Kangas
|
|
6
6
|
License: MIT License
|
|
@@ -29,7 +29,7 @@ Project-URL: Homepage, https://github.com/kangasta/photo-objects
|
|
|
29
29
|
Project-URL: Repository, https://github.com/kangasta/photo-objects.git
|
|
30
30
|
Classifier: Environment :: Web Environment
|
|
31
31
|
Classifier: Framework :: Django
|
|
32
|
-
Classifier: Framework :: Django ::
|
|
32
|
+
Classifier: Framework :: Django :: 6.0
|
|
33
33
|
Classifier: Intended Audience :: Developers
|
|
34
34
|
Classifier: License :: OSI Approved :: MIT License
|
|
35
35
|
Classifier: Operating System :: OS Independent
|
|
@@ -43,7 +43,7 @@ Description-Content-Type: text/markdown
|
|
|
43
43
|
License-File: LICENSE
|
|
44
44
|
Requires-Dist: markdown~=3.7
|
|
45
45
|
Requires-Dist: minio<7.2.19,>=7.2.0
|
|
46
|
-
Requires-Dist: pillow~=
|
|
46
|
+
Requires-Dist: pillow~=12.0
|
|
47
47
|
Dynamic: license-file
|
|
48
48
|
|
|
49
49
|
# Photo Objects
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from threading import Thread
|
|
2
|
+
from time import sleep
|
|
2
3
|
|
|
3
4
|
from django.contrib.auth import get_user_model
|
|
4
5
|
from django.contrib.auth.models import Group, Permission
|
|
@@ -59,7 +60,20 @@ def _group_dict(group: Group):
|
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
def _create_backup(backup_id: int):
|
|
62
|
-
|
|
63
|
+
# Backup might not be available immediately.
|
|
64
|
+
# Retry getting the backup a few times.
|
|
65
|
+
for _ in range(5):
|
|
66
|
+
try:
|
|
67
|
+
backup = Backup.objects.get(id=backup_id)
|
|
68
|
+
break
|
|
69
|
+
except Backup.DoesNotExist:
|
|
70
|
+
sleep(2)
|
|
71
|
+
|
|
72
|
+
if not backup:
|
|
73
|
+
return
|
|
74
|
+
|
|
75
|
+
backup.status = "processing"
|
|
76
|
+
backup.save()
|
|
63
77
|
|
|
64
78
|
user_model = get_user_model()
|
|
65
79
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: photo-objects
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.4
|
|
4
4
|
Summary: Application for storing photos in S3 compatible object-storage.
|
|
5
5
|
Author: Toni Kangas
|
|
6
6
|
License: MIT License
|
|
@@ -29,7 +29,7 @@ Project-URL: Homepage, https://github.com/kangasta/photo-objects
|
|
|
29
29
|
Project-URL: Repository, https://github.com/kangasta/photo-objects.git
|
|
30
30
|
Classifier: Environment :: Web Environment
|
|
31
31
|
Classifier: Framework :: Django
|
|
32
|
-
Classifier: Framework :: Django ::
|
|
32
|
+
Classifier: Framework :: Django :: 6.0
|
|
33
33
|
Classifier: Intended Audience :: Developers
|
|
34
34
|
Classifier: License :: OSI Approved :: MIT License
|
|
35
35
|
Classifier: Operating System :: OS Independent
|
|
@@ -43,7 +43,7 @@ Description-Content-Type: text/markdown
|
|
|
43
43
|
License-File: LICENSE
|
|
44
44
|
Requires-Dist: markdown~=3.7
|
|
45
45
|
Requires-Dist: minio<7.2.19,>=7.2.0
|
|
46
|
-
Requires-Dist: pillow~=
|
|
46
|
+
Requires-Dist: pillow~=12.0
|
|
47
47
|
Dynamic: license-file
|
|
48
48
|
|
|
49
49
|
# Photo Objects
|
|
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "photo-objects"
|
|
7
|
-
version = "0.10.
|
|
7
|
+
version = "0.10.4"
|
|
8
8
|
dependencies = [
|
|
9
9
|
"markdown~=3.7",
|
|
10
10
|
"minio>=7.2.0,<7.2.19",
|
|
11
|
-
"pillow~=
|
|
11
|
+
"pillow~=12.0"
|
|
12
12
|
]
|
|
13
13
|
description = "Application for storing photos in S3 compatible object-storage."
|
|
14
14
|
readme = "README.md"
|
|
@@ -20,7 +20,7 @@ authors = [
|
|
|
20
20
|
classifiers = [
|
|
21
21
|
"Environment :: Web Environment",
|
|
22
22
|
"Framework :: Django",
|
|
23
|
-
"Framework :: Django ::
|
|
23
|
+
"Framework :: Django :: 6.0",
|
|
24
24
|
"Intended Audience :: Developers",
|
|
25
25
|
"License :: OSI Approved :: MIT License",
|
|
26
26
|
"Operating System :: OS Independent",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/api/photo_change_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/management/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0001_initial.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0005_sitesettings.py
RENAMED
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0006_photo_alt_text.py
RENAMED
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/migrations/0007_backup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
{photo_objects-0.10.3 → photo_objects-0.10.4}/photo_objects/django/views/ui/photo_change_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|