photo-objects 0.9.4__tar.gz → 0.9.5__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.9.4 → photo_objects-0.9.5}/PKG-INFO +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/utils.py +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/album.py +4 -4
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/configuration.py +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/photo.py +5 -5
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/photo_change_request.py +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/users.py +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/utils.py +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/PKG-INFO +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/pyproject.toml +1 -1
- {photo_objects-0.9.4 → photo_objects-0.9.5}/LICENSE +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/README.md +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/config.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/admin.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/album.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/auth.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/backup.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/photo.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/photo_change_request.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/apps.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/conf.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/context_processors.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/forms.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/clean-scaled-photos.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/create-initial-admin-account.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/restore-backup.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0001_initial.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0002_created_at_updated_at.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0003_admin_visibility.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0004_camera_setup_and_settings.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0005_sitesettings.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0006_photo_alt_text.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0007_backup.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/models.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/objsto.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/signals.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/templatetags/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/templatetags/photo_objects_extras.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_album.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_auth.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_commands.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_img.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_og_meta.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_photo.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_photo_change_requests.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_utils.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/utils.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/urls.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/album.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/auth.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/photo.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/utils.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/__init__.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/utils.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/error.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/img.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/utils.py +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/SOURCES.txt +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/dependency_links.txt +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/requires.txt +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/top_level.txt +0 -0
- {photo_objects-0.9.4 → photo_objects-0.9.5}/setup.cfg +0 -0
|
@@ -50,7 +50,7 @@ class JsonProblem(PhotoObjectsError):
|
|
|
50
50
|
return render(request, "photo_objects/problem.html", {
|
|
51
51
|
"title": "Error",
|
|
52
52
|
"back": BackLink(
|
|
53
|
-
'
|
|
53
|
+
'Albums',
|
|
54
54
|
reverse_lazy('photo_objects:list_albums')),
|
|
55
55
|
"problem_title": self.title,
|
|
56
56
|
"status": self.status
|
|
@@ -40,7 +40,7 @@ def new_album(request: HttpRequest):
|
|
|
40
40
|
else:
|
|
41
41
|
form = CreateAlbumForm(initial={"key": "_new"}, user=request.user)
|
|
42
42
|
|
|
43
|
-
back = BackLink("
|
|
43
|
+
back = BackLink("Albums", reverse('photo_objects:list_albums'))
|
|
44
44
|
|
|
45
45
|
return render(request, 'photo_objects/form.html', {
|
|
46
46
|
"form": form,
|
|
@@ -59,7 +59,7 @@ def show_album(request: HttpRequest, album_key: str):
|
|
|
59
59
|
album = api.check_album_access(request, album_key)
|
|
60
60
|
photos = album.photo_set.all()
|
|
61
61
|
|
|
62
|
-
back = BackLink("
|
|
62
|
+
back = BackLink("Albums", reverse('photo_objects:list_albums'))
|
|
63
63
|
details = {
|
|
64
64
|
"Description": render_markdown(album.description),
|
|
65
65
|
"Visibility": Album.Visibility(album.visibility).label,
|
|
@@ -102,7 +102,7 @@ def edit_album(request: HttpRequest, album_key: str):
|
|
|
102
102
|
|
|
103
103
|
target = album.title or album.key
|
|
104
104
|
back = BackLink(
|
|
105
|
-
|
|
105
|
+
target,
|
|
106
106
|
reverse(
|
|
107
107
|
'photo_objects:show_album',
|
|
108
108
|
kwargs={"album_key": album_key}))
|
|
@@ -125,7 +125,7 @@ def delete_album(request: HttpRequest, album_key: str):
|
|
|
125
125
|
album = api.check_album_access(request, album_key)
|
|
126
126
|
target = album.title or album.key
|
|
127
127
|
back = BackLink(
|
|
128
|
-
|
|
128
|
+
target,
|
|
129
129
|
reverse(
|
|
130
130
|
'photo_objects:show_album',
|
|
131
131
|
kwargs={
|
|
@@ -167,7 +167,7 @@ def configuration(request: HttpRequest):
|
|
|
167
167
|
site_description_configured(request),
|
|
168
168
|
]
|
|
169
169
|
|
|
170
|
-
back = BackLink("
|
|
170
|
+
back = BackLink("Albums", reverse('photo_objects:list_albums'))
|
|
171
171
|
|
|
172
172
|
return render(request, "photo_objects/configuration.html", {
|
|
173
173
|
"title": "Configuration",
|
|
@@ -43,7 +43,7 @@ def upload_photos(request: HttpRequest, album_key: str):
|
|
|
43
43
|
album = api.check_album_access(request, album_key)
|
|
44
44
|
target = album.title or album.key
|
|
45
45
|
back = BackLink(
|
|
46
|
-
|
|
46
|
+
target, reverse(
|
|
47
47
|
'photo_objects:show_album', kwargs={
|
|
48
48
|
"album_key": album_key}))
|
|
49
49
|
|
|
@@ -109,7 +109,7 @@ def show_photo(request: HttpRequest, album_key: str, photo_key: str):
|
|
|
109
109
|
|
|
110
110
|
previous_filename = photo.key.split("/")[-1]
|
|
111
111
|
next_filename = previous_filename
|
|
112
|
-
back = BackLink("
|
|
112
|
+
back = BackLink("Albums", reverse('photo_objects:list_albums'))
|
|
113
113
|
|
|
114
114
|
try:
|
|
115
115
|
api.check_album_access(request, photo.album.key)
|
|
@@ -125,7 +125,7 @@ def show_photo(request: HttpRequest, album_key: str, photo_key: str):
|
|
|
125
125
|
|
|
126
126
|
target = photo.album.title or photo.album.key
|
|
127
127
|
back = BackLink(
|
|
128
|
-
|
|
128
|
+
target, reverse(
|
|
129
129
|
'photo_objects:show_album', kwargs={
|
|
130
130
|
"album_key": album_key}))
|
|
131
131
|
except AlbumNotFound:
|
|
@@ -170,7 +170,7 @@ def edit_photo(request: HttpRequest, album_key: str, photo_key: str):
|
|
|
170
170
|
|
|
171
171
|
target = photo.title or photo.filename
|
|
172
172
|
back = BackLink(
|
|
173
|
-
|
|
173
|
+
target,
|
|
174
174
|
reverse(
|
|
175
175
|
'photo_objects:show_photo',
|
|
176
176
|
kwargs={
|
|
@@ -197,7 +197,7 @@ def delete_photo(request: HttpRequest, album_key: str, photo_key: str):
|
|
|
197
197
|
photo = api.check_photo_access(request, album_key, photo_key, "xs")
|
|
198
198
|
target = photo.title or photo.filename
|
|
199
199
|
back = BackLink(
|
|
200
|
-
|
|
200
|
+
target,
|
|
201
201
|
reverse(
|
|
202
202
|
'photo_objects:show_photo',
|
|
203
203
|
kwargs={
|
{photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/photo_change_request.py
RENAMED
|
@@ -47,7 +47,7 @@ def review_photo_change_request(request: HttpRequest, cr_id: str):
|
|
|
47
47
|
else:
|
|
48
48
|
info = f"There are {count} change requests in the review queue."
|
|
49
49
|
|
|
50
|
-
back = BackLink("
|
|
50
|
+
back = BackLink("Albums", reverse('photo_objects:list_albums'))
|
|
51
51
|
|
|
52
52
|
return render(request, 'photo_objects/form.html', {
|
|
53
53
|
"form": form,
|
|
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.9.4 → photo_objects-0.9.5}/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
|
{photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0003_admin_visibility.py
RENAMED
|
File without changes
|
|
File without changes
|
{photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0005_sitesettings.py
RENAMED
|
File without changes
|
{photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0006_photo_alt_text.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
|
{photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_photo_change_requests.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
|