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.
Files changed (71) hide show
  1. {photo_objects-0.9.4 → photo_objects-0.9.5}/PKG-INFO +1 -1
  2. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/utils.py +1 -1
  3. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/album.py +4 -4
  4. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/configuration.py +1 -1
  5. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/photo.py +5 -5
  6. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/photo_change_request.py +1 -1
  7. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/users.py +1 -1
  8. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/utils.py +1 -1
  9. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/PKG-INFO +1 -1
  10. {photo_objects-0.9.4 → photo_objects-0.9.5}/pyproject.toml +1 -1
  11. {photo_objects-0.9.4 → photo_objects-0.9.5}/LICENSE +0 -0
  12. {photo_objects-0.9.4 → photo_objects-0.9.5}/README.md +0 -0
  13. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/__init__.py +0 -0
  14. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/config.py +0 -0
  15. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/__init__.py +0 -0
  16. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/admin.py +0 -0
  17. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/__init__.py +0 -0
  18. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/album.py +0 -0
  19. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/auth.py +0 -0
  20. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/backup.py +0 -0
  21. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/photo.py +0 -0
  22. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/api/photo_change_request.py +0 -0
  23. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/apps.py +0 -0
  24. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/conf.py +0 -0
  25. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/context_processors.py +0 -0
  26. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/forms.py +0 -0
  27. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/__init__.py +0 -0
  28. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/__init__.py +0 -0
  29. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/clean-scaled-photos.py +0 -0
  30. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/create-initial-admin-account.py +0 -0
  31. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/management/commands/restore-backup.py +0 -0
  32. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0001_initial.py +0 -0
  33. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0002_created_at_updated_at.py +0 -0
  34. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0003_admin_visibility.py +0 -0
  35. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0004_camera_setup_and_settings.py +0 -0
  36. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0005_sitesettings.py +0 -0
  37. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0006_photo_alt_text.py +0 -0
  38. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/0007_backup.py +0 -0
  39. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/migrations/__init__.py +0 -0
  40. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/models.py +0 -0
  41. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/objsto.py +0 -0
  42. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/signals.py +0 -0
  43. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/templatetags/__init__.py +0 -0
  44. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/templatetags/photo_objects_extras.py +0 -0
  45. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/__init__.py +0 -0
  46. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_album.py +0 -0
  47. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_auth.py +0 -0
  48. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_commands.py +0 -0
  49. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_img.py +0 -0
  50. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_og_meta.py +0 -0
  51. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_photo.py +0 -0
  52. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_photo_change_requests.py +0 -0
  53. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/test_utils.py +0 -0
  54. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/tests/utils.py +0 -0
  55. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/urls.py +0 -0
  56. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/__init__.py +0 -0
  57. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/__init__.py +0 -0
  58. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/album.py +0 -0
  59. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/auth.py +0 -0
  60. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/photo.py +0 -0
  61. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/api/utils.py +0 -0
  62. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/__init__.py +0 -0
  63. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/django/views/ui/utils.py +0 -0
  64. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/error.py +0 -0
  65. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/img.py +0 -0
  66. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects/utils.py +0 -0
  67. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/SOURCES.txt +0 -0
  68. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/dependency_links.txt +0 -0
  69. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/requires.txt +0 -0
  70. {photo_objects-0.9.4 → photo_objects-0.9.5}/photo_objects.egg-info/top_level.txt +0 -0
  71. {photo_objects-0.9.4 → photo_objects-0.9.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: photo-objects
3
- Version: 0.9.4
3
+ Version: 0.9.5
4
4
  Summary: Application for storing photos in S3 compatible object-storage.
5
5
  Author: Toni Kangas
6
6
  License: MIT License
@@ -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
- 'Back to albums',
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("Back to albums", reverse('photo_objects:list_albums'))
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("Back to albums", reverse('photo_objects:list_albums'))
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
- f'Back to {target}',
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
- f'Back to {target}',
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("Back to albums", reverse('photo_objects:list_albums'))
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
- f"Back to {target}", reverse(
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("Back to albums", reverse('photo_objects:list_albums'))
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
- f"Back to {target}", reverse(
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
- f'Back to {target}',
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
- f'Back to {target}',
200
+ target,
201
201
  reverse(
202
202
  'photo_objects:show_photo',
203
203
  kwargs={
@@ -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("Back to albums", reverse('photo_objects:list_albums'))
50
+ back = BackLink("Albums", reverse('photo_objects:list_albums'))
51
51
 
52
52
  return render(request, 'photo_objects/form.html', {
53
53
  "form": form,
@@ -16,7 +16,7 @@ def login(request: HttpRequest):
16
16
  "photo": settings.preview_image,
17
17
  "action": "Login",
18
18
  "back": BackLink(
19
- 'Back to albums',
19
+ 'Albums',
20
20
  reverse_lazy('photo_objects:list_albums')),
21
21
  "class": "login"
22
22
  },
@@ -6,7 +6,7 @@ from photo_objects.utils import first_paragraph_textcontent
6
6
 
7
7
 
8
8
  class BackLink:
9
- def __init__(self, text, url):
9
+ def __init__(self, text: str, url: str):
10
10
  self.text = text
11
11
  self.url = url
12
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: photo-objects
3
- Version: 0.9.4
3
+ Version: 0.9.5
4
4
  Summary: Application for storing photos in S3 compatible object-storage.
5
5
  Author: Toni Kangas
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "photo-objects"
7
- version = "0.9.4"
7
+ version = "0.9.5"
8
8
  dependencies = [
9
9
  "markdown~=3.7",
10
10
  "minio>=7.2.0,<7.2.19",
File without changes
File without changes
File without changes