photo-objects 0.0.4__tar.gz → 0.0.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 (57) hide show
  1. {photo_objects-0.0.4 → photo_objects-0.0.5}/PKG-INFO +1 -1
  2. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/tests/utils.py +1 -0
  3. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/ui/photo.py +11 -8
  4. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects.egg-info/PKG-INFO +1 -1
  5. {photo_objects-0.0.4 → photo_objects-0.0.5}/pyproject.toml +1 -1
  6. {photo_objects-0.0.4 → photo_objects-0.0.5}/LICENSE +0 -0
  7. {photo_objects-0.0.4 → photo_objects-0.0.5}/README.md +0 -0
  8. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/__init__.py +0 -0
  9. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/config.py +0 -0
  10. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/__init__.py +0 -0
  11. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/admin.py +0 -0
  12. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/api/__init__.py +0 -0
  13. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/api/album.py +0 -0
  14. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/api/auth.py +0 -0
  15. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/api/photo.py +0 -0
  16. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/api/utils.py +0 -0
  17. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/apps.py +0 -0
  18. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/context_processors.py +0 -0
  19. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/forms.py +0 -0
  20. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/management/__init__.py +0 -0
  21. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/management/commands/__init__.py +0 -0
  22. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/management/commands/create-initial-admin-account.py +0 -0
  23. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/management/commands/create-site-albums.py +0 -0
  24. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/migrations/0001_initial.py +0 -0
  25. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/migrations/0002_created_at_updated_at.py +0 -0
  26. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/migrations/0003_admin_visibility.py +0 -0
  27. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/migrations/0004_camera_setup_and_settings.py +0 -0
  28. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/migrations/__init__.py +0 -0
  29. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/models.py +0 -0
  30. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/objsto.py +0 -0
  31. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/signals.py +0 -0
  32. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/templatetags/__init__.py +0 -0
  33. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/templatetags/photo_objects_extras.py +0 -0
  34. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/tests/__init__.py +0 -0
  35. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/tests/test_album.py +0 -0
  36. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/tests/test_auth.py +0 -0
  37. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/tests/test_photo.py +0 -0
  38. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/tests/test_utils.py +0 -0
  39. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/urls.py +0 -0
  40. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/__init__.py +0 -0
  41. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/api/__init__.py +0 -0
  42. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/api/album.py +0 -0
  43. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/api/auth.py +0 -0
  44. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/api/photo.py +0 -0
  45. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/api/utils.py +0 -0
  46. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/ui/__init__.py +0 -0
  47. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/ui/album.py +0 -0
  48. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/ui/configuration.py +0 -0
  49. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/ui/utils.py +0 -0
  50. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/django/views/utils.py +0 -0
  51. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/error.py +0 -0
  52. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects/img.py +0 -0
  53. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects.egg-info/SOURCES.txt +0 -0
  54. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects.egg-info/dependency_links.txt +0 -0
  55. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects.egg-info/requires.txt +0 -0
  56. {photo_objects-0.0.4 → photo_objects-0.0.5}/photo_objects.egg-info/top_level.txt +0 -0
  57. {photo_objects-0.0.4 → photo_objects-0.0.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: photo-objects
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Application for storing photos in S3 compatible object-storage.
5
5
  Author: Toni Kangas
6
6
  License: MIT License
@@ -32,6 +32,7 @@ def _objsto_test_settings():
32
32
  return {
33
33
  **settings.PHOTO_OBJECTS_OBJSTO,
34
34
  "BUCKET": "test-bucket",
35
+ "SECURE": False,
35
36
  }
36
37
 
37
38
 
@@ -41,17 +41,19 @@ def upload_photos(request: HttpRequest, album_key: str):
41
41
  })
42
42
 
43
43
 
44
- def _camera_setup(photo: Photo):
45
- r = []
44
+ def _camera(photo: Photo):
46
45
  if photo.camera_make or photo.camera_model:
47
- r.append(
48
- " ".join(i for i in [
46
+ return " ".join(i for i in [
49
47
  photo.camera_make,
50
48
  photo.camera_model,
51
- ] if i))
49
+ ] if i)
50
+ return None
51
+
52
+
53
+ def _lens(photo: Photo):
52
54
  if photo.lens_make or photo.lens_model:
53
- r.append(" ".join(i for i in [photo.lens_make, photo.lens_model] if i))
54
- return r
55
+ return " ".join(i for i in [photo.lens_make, photo.lens_model] if i)
56
+ return None
55
57
 
56
58
 
57
59
  def _exposure_time_to_string(exposure_time: float | None):
@@ -107,7 +109,8 @@ def show_photo(request: HttpRequest, album_key: str, photo_key: str):
107
109
  details = {
108
110
  "Description": render_markdown(photo.description),
109
111
  "Timestamp": photo.timestamp,
110
- "Camera": _camera_setup(photo),
112
+ "Camera": _camera(photo),
113
+ "Lens": _lens(photo),
111
114
  "Settings": _camera_settings(photo),
112
115
  }
113
116
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: photo-objects
3
- Version: 0.0.4
3
+ Version: 0.0.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.0.4"
7
+ version = "0.0.5"
8
8
  dependencies = [
9
9
  "markdown~=3.7",
10
10
  "minio~=7.2",
File without changes
File without changes
File without changes